Skip to content

RTK Query isLoading state gets false before data has been fetched #4831

Answered by phryneas
n-ii-ma asked this question in Q&A
Discussion options

You must be logged in to vote

The query is done (stops loading) once queryFn finishes.
The lifecycle where you do your websocket call exists "outside" of this and has no influence on loading states.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@n-ii-ma
Comment options

@phryneas
Comment options

@n-ii-ma
Comment options

@phryneas
Comment options

Answer selected by n-ii-ma
@n-ii-ma
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants