Skip to content

Is it possible to clear a URL param without affecting state? #901

Answered by franky47
chrber04 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@franky47
Comment options

Answer selected by franky47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants