How to update state after router.push()?

Currently, I have a router.push("/dashboard") on a page where I edit the session. Then in dashboard I have useSession() hook. If I manually go to /dashboard everything works because it is forced to update the state, but if I do router.push("/dashboard") it seems like it is just using the state that was there when the initial page was first loaded. Let me know if you know how to circumvent this!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server