<?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: developersatyajit</title>
    <description>The latest articles on DEV Community by developersatyajit (@developersatyajit).</description>
    <link>https://dev.to/developersatyajit</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%2F512681%2F0e29e17c-ec28-4856-83a1-6de9dd1446b7.png</url>
      <title>DEV Community: developersatyajit</title>
      <link>https://dev.to/developersatyajit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/developersatyajit"/>
    <language>en</language>
    <item>
      <title>How to become master in Javascript</title>
      <dc:creator>developersatyajit</dc:creator>
      <pubDate>Thu, 12 Nov 2020 07:30:32 +0000</pubDate>
      <link>https://dev.to/developersatyajit/how-to-become-master-in-javascript-1nek</link>
      <guid>https://dev.to/developersatyajit/how-to-become-master-in-javascript-1nek</guid>
      <description>&lt;p&gt;How to master in javascript basic. Went through lot of websites in Google but want to learn it more simpler way. Can anybody teach me how?&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Error handling in react redux with useSelector hook</title>
      <dc:creator>developersatyajit</dc:creator>
      <pubDate>Thu, 12 Nov 2020 06:11:53 +0000</pubDate>
      <link>https://dev.to/developersatyajit/error-handling-in-react-redux-with-useselector-hook-e93</link>
      <guid>https://dev.to/developersatyajit/error-handling-in-react-redux-with-useselector-hook-e93</guid>
      <description>&lt;p&gt;I am using useSelector hook in my UI. But I can not handle the error that is coming form the API. I can see the reducer is getting updated with the error in my redux state. When I am going to show this error in UI, its not showing. The submit button is in the Modal popup.&lt;br&gt;
Like below:&lt;/p&gt;

&lt;p&gt;UI ----&lt;/p&gt;

&lt;p&gt;const dispatch = useDispatch();&lt;/p&gt;

&lt;p&gt;const {error} = useSelector((state) =&amp;gt; {&lt;br&gt;
   error: state.error&lt;br&gt;
})&lt;/p&gt;

&lt;p&gt;const handleModalSubmit = () =&amp;gt; {&lt;br&gt;
    dispatch(myReducerFunction())&lt;br&gt;
    // here I wan to catch the error like which is not working.&lt;br&gt;
    if(error) {&lt;br&gt;
       // this error is showing as null or the previous redux state not the updated one which is coming from the reducer&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

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