Query is stuck at isLoading: true
but data has been fetched and no error
#4368
Unanswered
joeattardi
asked this question in
Q&A
Replies: 1 comment 36 replies
-
It is derived, but Could you try to maybe record a Replay of it happening? |
Beta Was this translation helpful? Give feedback.
36 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into an issue with RTK Query v2.2.3. It's very intermittent and there is no reliable way to reproduce it other than constantly refreshing the page and triggering the query, so I don't think I can post an example code that exhibits it. It takes a while but eventually I can reproduce it.
But what's happening is after the request succeeds, it's still stuck in a loading state. It stays in the
isLoading
state forever. I looked in the RTK Query devtools, and I don't even see anisLoading
flag there:Is the
isLoading
flag derived from other data? Could there be any situation where this gets stuck atisLoading: true
even thoughisSuccess
istrue
and the data has been returned?Beta Was this translation helpful? Give feedback.
All reactions