Next.js Discord

Discord Forum

How to ignore remount while set query params with useRouter?

Unanswered
Somali posted this in #help-forum
Open in Discord
SomaliOP
Hi, I'm using Framer Motion with AnimatePresence for page transitions. However, I'm also using filters that set query parameters to save the selected filter. When I select a filter value, I modify the query parameters in the URL, and this triggers the AnimatePresence, causing the entire page transition to occur. How can I prevent this behavior?

0 Replies