<?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: mertyjsx</title>
    <description>The latest articles on DEV Community by mertyjsx (@mertyjsx).</description>
    <link>https://dev.to/mertyjsx</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%2F501186%2F197d7731-62f8-4474-bb2e-cfba6c423b91.jpeg</url>
      <title>DEV Community: mertyjsx</title>
      <link>https://dev.to/mertyjsx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mertyjsx"/>
    <language>en</language>
    <item>
      <title>React cant reach current state</title>
      <dc:creator>mertyjsx</dc:creator>
      <pubDate>Wed, 28 Oct 2020 20:44:13 +0000</pubDate>
      <link>https://dev.to/mertyjsx/react-cant-reach-current-state-814</link>
      <guid>https://dev.to/mertyjsx/react-cant-reach-current-state-814</guid>
      <description>&lt;p&gt;&lt;a href="https://codesandbox.io/s/the-appropriate-use-of-usecallback-forked-o55n6?file=/src/Example.js:248-400"&gt;https://codesandbox.io/s/the-appropriate-use-of-usecallback-forked-o55n6?file=/src/Example.js:248-400&lt;/a&gt;&lt;br&gt;
hello i have a problem&lt;br&gt;
I created a useState called [users, setusers]&lt;br&gt;
and in useeffect, I have assigned a delete function for each user.&lt;br&gt;
this delete function needs to reach users state&lt;/p&gt;

&lt;p&gt;But the problem starts here. When I want to reach users through the delete function,&lt;br&gt;
I get the initial state of the state, (the state at the time I created the first user object)&lt;/p&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
      <category>help</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
