Mutate behaivor suddendly changed #2945
Unanswered
ulisescarreonalvarez
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
So i was working on this app, and everything worked as expected.
At one moment in time i implemented a Table with a button for the refresh data from the API, that looks like this.
When i click the button the refetchLeadsActive is a function that mutates the key, isLoading parameter from SWR always was set with isLoading as true, so the Table will show a Spin Loading Icon, but suddenly now isLoading is always false, the only time that isLoading is true is when i manually refrtesh the page so the Request is made by the first time, im stuck because no error or warning is shown on my console.
Code of hook:
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions