Next.js Discord

Discord Forum

Mutation alters user in database then redirects to homepage. How can i force user session to update

Unanswered
American Crocodile posted this in #help-forum
Open in Discord
American CrocodileOP
I have a page /form when i press the submit button i activate a mutation that updates a field on user to true it then redirects to "/". When it redirects it does not update the ui and show green arrows for that form. I have to refresh page for the new user to come in with that field set to true. even tho it is true when i am redirected and i see red arrows indicating its false in databse

0 Replies