-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@cpotey AFAIK the debounce only changes how often the URL is updated. The internal state is updated like |
Beta Was this translation helpful? Give feedback.
@cpotey AFAIK the debounce only changes how often the URL is updated. The internal state is updated like
useState
or Zustand would be. I wrote some notes on the mental model in #408