#router.push not unmounting components correctly?

2 messages · Page 1 of 1 (latest)

sour stratus
#

Just updated from 14.1.4 to 14.2.2. We have an intercepting route that is a modal. Within that modal we have a button that does a router.push() back to the page where a button exists that originally opened the modal. If I click my button in the modal to put me back on the main page, and try to reopen my modal, I see the URL change to the intercepted route, but the modal does not come up anymore. This worked fine on 14.1.4. Also using router.back() works, but in our use case we need router.push here. I am trying to replicate this in code sandbox but cannot import useRouter for some reason.

cursive pineBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)