-
I have a modal which uses useQueryStates ( Is there a way to clear URL params without actually triggering a state reset? I know default values exist, but that doesn't help when the user is on another tab than the default one, it still flickers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This sounds related to #893, for which one of the solutions would be to cache the value in a ref and use that while transitioning/animating. TL;DR: no, the URL is the source of truth, so if you want to animate something out, you should update the URL after the animation has finished. |
Beta Was this translation helpful? Give feedback.
This sounds related to #893, for which one of the solutions would be to cache the value in a ref and use that while transitioning/animating.
TL;DR: no, the URL is the source of truth, so if you want to animate something out, you should update the URL after the animation has finished.