Next.js Discord

Discord Forum

useState questions

Unanswered
Gecco posted this in #help-forum
Open in Discord
hi there, I am trying to implement a function in my code that requires me to be sure the desired value was updated in useState prior to continueing, is there a way to in sorts await for the completion and updating of useState before continuing? Thanks

2 Replies

In addition to help you more, please provide more information