QuestionWeb AppWeb app. runs in the browser resolved
my state updates one render behind
I click the button, the count is wrong, I click again and it catches up. classic stale state? how do I fix it the right way?
2 answers
I click the button, the count is wrong, I click again and it catches up. classic stale state? how do I fix it the right way?
yep, classic. paste your setup and I can be more specific, but start with the obvious suspect.
you are closer than you think. it is the ordering — do the setup step before the call.