You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second console log never reflects the updated value. I suppose this is just immutability at work, but I'd at least like a way to "requery" for the current value. TIA.
The text was updated successfully, but these errors were encountered:
It's not possible to synchronously see what the new state will be after calling a state-changing function. There's not even afaik a way to asynchronously wait and see what the new state will be (see facebook/react#15344).
Given an initialized useMethods
And an updater like the following:
When I run an effect hook, how can I synchronously have the value of the
answerValidity
subkey ofproductReviewState
?The second console log never reflects the updated value. I suppose this is just immutability at work, but I'd at least like a way to "requery" for the current value. TIA.
The text was updated successfully, but these errors were encountered: