<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: liu550</title>
    <description>The latest articles on DEV Community by liu550 (@liu550).</description>
    <link>https://dev.to/liu550</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F291482%2F642a40d8-db93-4abd-bb4b-510730d83a2c.png</url>
      <title>DEV Community: liu550</title>
      <link>https://dev.to/liu550</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/liu550"/>
    <language>en</language>
    <item>
      <title>Cannot call a child component's function from the parent component. Error: “…is not a function”</title>
      <dc:creator>liu550</dc:creator>
      <pubDate>Fri, 19 Jun 2020 16:25:34 +0000</pubDate>
      <link>https://dev.to/liu550/cannot-call-a-child-component-s-function-from-the-parent-component-error-is-not-a-function-42c4</link>
      <guid>https://dev.to/liu550/cannot-call-a-child-component-s-function-from-the-parent-component-error-is-not-a-function-42c4</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;For my website I want to include a feature that helps users randomly click a link programatically. The event happens in the parent component called StreamingPlaza, and its has a list of children components called StreamingCard, each containing a streaming link. The attached screenshots are my code. I got the error "this.roomclicks.current[0].handleClick is not a function." I tried console.log(this.roomclicks.current[0]), and it did print out the StreamingCard child component. I looked through many relevant stackoverflow posts, and the answers suggested that this code was supposed to work. I would appreciate a lot if someone can tell me where I get it wrong. Thanks!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5_Ci-L5f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/d76erkr1yui0qemb83ab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5_Ci-L5f--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/d76erkr1yui0qemb83ab.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gySuY58g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5aaz71zl20hgmqftxip7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gySuY58g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5aaz71zl20hgmqftxip7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>User info not stored in firestore using Redux action object</title>
      <dc:creator>liu550</dc:creator>
      <pubDate>Sun, 26 Apr 2020 01:41:11 +0000</pubDate>
      <link>https://dev.to/liu550/user-info-not-stored-in-firestore-using-redux-action-object-53ck</link>
      <guid>https://dev.to/liu550/user-info-not-stored-in-firestore-using-redux-action-object-53ck</guid>
      <description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I got a problem with my signUp function, which is a Redux action object called when a user submits a signup form: While a user was successfully created in my firebase authentication page, the user info did not get stored into firestore. I used to place the exact same code for storing user info in firestore in the signup component without using Redux, and it worked fine. I am wondering what might cause the problem. Thanks!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wYeplG0T--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/sspbk1eyrpfg13ok4q4a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wYeplG0T--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/sspbk1eyrpfg13ok4q4a.png" alt="signUp Redux action object"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>redux</category>
    </item>
    <item>
      <title>Managing permission to edit user profiles &amp; The downsides of not separating frontend from backend</title>
      <dc:creator>liu550</dc:creator>
      <pubDate>Mon, 20 Apr 2020 19:45:53 +0000</pubDate>
      <link>https://dev.to/liu550/managing-permission-to-edit-user-profiles-the-downsides-of-not-separating-frontend-from-backend-1ngd</link>
      <guid>https://dev.to/liu550/managing-permission-to-edit-user-profiles-the-downsides-of-not-separating-frontend-from-backend-1ngd</guid>
      <description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I am using React to build a website and have the following questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;How can I only allow the owner of a profile to edit it and make it read-only for other users (e.g. LinkedIn profile)?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What are the downsides of directly calling firebase's methods in my frontend to (1) store data into my firebase database and (2) retrieve and display data from the database without using a backend?&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Thank you so much for bearing with the beginner questions.&lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>Failing to fetch API</title>
      <dc:creator>liu550</dc:creator>
      <pubDate>Sat, 04 Apr 2020 05:27:01 +0000</pubDate>
      <link>https://dev.to/liu550/failing-to-fetch-api-2fgm</link>
      <guid>https://dev.to/liu550/failing-to-fetch-api-2fgm</guid>
      <description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I'm trying to fetch a token and session id from the backend when a button is clicked. However, among all the console.log() functions I put in the handleSubmit function, only the first one worked, printing out "ok." I am wondering what caused the program fail to fetch the data from the backend (my backend code does generate a token and session id on localhost:5000/api/sessions). I attached a screenshot of (1) the backend code, (2) the frontend code, (3) proxy.js, and (4) my project folder. I do not include a proxy string or object in package.json. Thanks!&lt;/p&gt;

&lt;p&gt;Backend&lt;br&gt;
&lt;a href="https://dev-to-uploads.s3.amazonaws.com/i/aeqesx6nal99naoj7gaw.png"&gt;https://dev-to-uploads.s3.amazonaws.com/i/aeqesx6nal99naoj7gaw.png&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Frontend (fetch API)&lt;br&gt;
&lt;a href="https://dev-to-uploads.s3.amazonaws.com/i/fgf8as8f0f7qbagu0xjk.png"&gt;https://dev-to-uploads.s3.amazonaws.com/i/fgf8as8f0f7qbagu0xjk.png&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;proxy.js&lt;br&gt;
&lt;a href="https://dev-to-uploads.s3.amazonaws.com/i/fxi1h2iowx4bxq7mlaoy.png"&gt;https://dev-to-uploads.s3.amazonaws.com/i/fxi1h2iowx4bxq7mlaoy.png&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;src folder&lt;br&gt;
&lt;a href="https://dev-to-uploads.s3.amazonaws.com/i/n788uaysq2p8lb77u7tr.png"&gt;https://dev-to-uploads.s3.amazonaws.com/i/n788uaysq2p8lb77u7tr.png&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>node</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Problems with Node.js</title>
      <dc:creator>liu550</dc:creator>
      <pubDate>Sat, 21 Mar 2020 19:40:00 +0000</pubDate>
      <link>https://dev.to/liu550/problems-with-node-js-3hl8</link>
      <guid>https://dev.to/liu550/problems-with-node-js-3hl8</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am wondering why my server side code only outputs "Hi ${port}" on console without (1) showing the actual port number or (2) opening up the "locolhost:5000" web page. My command is "npm start server." The screenshots of (1) the code and the (2) scripts part of the package.json file are attached. Thanks!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.amazonaws.com/i/fqccj2yqjogkszwzkjp5.png"&gt;https://dev-to-uploads.s3.amazonaws.com/i/fqccj2yqjogkszwzkjp5.png&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev-to-uploads.s3.amazonaws.com/i/w90w553emwra9deb7y8k.png"&gt;https://dev-to-uploads.s3.amazonaws.com/i/w90w553emwra9deb7y8k.png&lt;/a&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>javascript</category>
      <category>react</category>
    </item>
    <item>
      <title>Uncaught TypeError: Cannot read property "state" of undefined</title>
      <dc:creator>liu550</dc:creator>
      <pubDate>Tue, 17 Mar 2020 03:04:07 +0000</pubDate>
      <link>https://dev.to/liu550/uncaught-typeerror-cannot-read-property-state-of-undefined-hc5</link>
      <guid>https://dev.to/liu550/uncaught-typeerror-cannot-read-property-state-of-undefined-hc5</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am wondering why the console reports the error at line 36. Thanks for your help.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lpIk4tvi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/p3mi9puowqxy35wgb18m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lpIk4tvi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/p3mi9puowqxy35wgb18m.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>opentok</category>
      <category>javascript</category>
      <category>help</category>
    </item>
    <item>
      <title>Look for advice about a project</title>
      <dc:creator>liu550</dc:creator>
      <pubDate>Thu, 02 Jan 2020 01:00:43 +0000</pubDate>
      <link>https://dev.to/liu550/look-for-advice-about-a-project-292</link>
      <guid>https://dev.to/liu550/look-for-advice-about-a-project-292</guid>
      <description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I am building a web app resembling a combination of Twitch and Zoom: A host can turn on the camera and share his screen, start broadcasting. Other users search on the website for interesting content and then join the room. The reason why I say this app is also like Zoom is that the functionality/purpose of the app is to enable a few people (maybe up to 6 per room) to have remote conversations, and there will be some video-conferencing features added to the app.&lt;/p&gt;

&lt;p&gt;Is WebRTC suitable for this application? Also, how are the techniques needed for broadcasting different from the ones needed for multiparty video communication and WebRTC? Thanks. Looking forward to your advice.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
