Replies: 1 comment
-
|
You could pass |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am implementing a search, but when the query change isLoading never change,
how can I handle this situation, to show a spinner when the user enter a search.
I need a way to difference when isFetching change because a variable change or when is a background fetching (same variables)
this is the code:
When a search is input isFetching change, but isLoading does not.
I implement this
(to detect loading state but seems it is a easy way to do it)
What it does is check is the query using the same params when is refetching then it is a background fetch (no isLoading) but when params are different then is because is a user input, (new search or next page) then is loading
thanks!
Beta Was this translation helpful? Give feedback.
All reactions