Not able to update slate value from useEffect #5109
Unanswered
smadapathi
asked this question in
Q&A
Replies: 1 comment
-
|
Unfortunately for a variety of reasons, you cannot just replace the This example shows one way to work around it by using on |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello Team,
Thanks for the library!
We are unable to update slate
valuefrom the useEffect hook. I have created a sandbox link for reproducing the issue. If we comment line#24 in the above link, it works, but we were expecting it to work with setState in useEffect.We would like to update slate value asynchronously, any suggestions would be of a great help.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions