Skip to content

RTK-Query, server-side rendering, rehydration, and 404 errors #2511

Answered by phryneas
azangru asked this question in Q&A
Discussion options

You must be logged in to vote

It treats it as cache. But if a RTK Query component mounts and the last state was an error state, it tries again.
But yes, you have to use extractRehydrationInfo generally or you will have subscriptions lingering forever.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@azangru
Comment options

@phryneas
Comment options

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