You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing an autocomplete component that uses SWR. So far so great, I really love it but I would like to handle the use case when the user types fast and I would love to not trigger all the SWR calls if those calls are made in the same period of time.
Would be possible to do that or should I create a layer above SWR?
The other issue would be that the match should be done on partial key because at the moment my code is like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm implementing an autocomplete component that uses SWR. So far so great, I really love it but I would like to handle the use case when the user types fast and I would love to not trigger all the SWR calls if those calls are made in the same period of time.
Would be possible to do that or should I create a layer above SWR?
The other issue would be that the match should be done on partial key because at the moment my code is like this:
so I would like to check on
/search?query=
and not the whole queryBeta Was this translation helpful? Give feedback.
All reactions