|
I have a search component, I am storing the value to the URL - but I wanted to debounce it (saw this issue, which was basically similar to what I was after), and noticed I am then in another component looking at the However, the search is updated everytime I type into the Input of the Search component, causing my fetch request to happen instantly (rather than debounced by 3000Ms). It doesn't seem to be adhering to the throttle set in the Is this correct, or a bug, as I might need to find another way of debouncing this input if this is the case. |
Answered by
tordans
Jan 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@cpotey AFAIK the debounce only changes how often the URL is updated. The internal state is updated like
useStateor Zustand would be. I wrote some notes on the mental model in #408