setState running twice #4
Unanswered
stygianlgdonic
asked this question in
Q&A
Replies: 1 comment 21 replies
-
|
Hi @stygianlgdonic, can you please provide some steps to reproduce this? If you can reproduce it in codeSandbox I could investigate it. Trying a barebones example, I couldn't see any behaviour occurring where anything runs twice unexpectedly: https://codesandbox.io/s/happy-allen-64qxm?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
21 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Every time i setState, it runs twice. How can i fix that?
Beta Was this translation helpful? Give feedback.
All reactions