|
Hi Team, I was wondering is there any way, we can programmatically disable the URL state sync? Similar to how currently we can set the Same way, if we can pass a prop to the hook and disable the sync fully? |
Answered by
franky47
Apr 28, 2025
Replies: 1 comment
|
The throttleMs to Infinity is kind of a hack to allow keeping controlled inputs (eg: a search query) but deferring the URL update to a single event (eg: clicking a submit button). Those controlled inputs will likely want to follow any updates coming from the URL (eg: being reset from another part of the UI), because the URL is the source of truth. |
0 replies
Answer selected by
franky47
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The throttleMs to Infinity is kind of a hack to allow keeping controlled inputs (eg: a search query) but deferring the URL update to a single event (eg: clicking a submit button). Those controlled inputs will likely want to follow any updates coming from the URL (eg: being reset from another part of the UI), because the URL is the source of truth.