Skip to content

Theme switch request revalidates all other loaders. Can this be prevented? #765

Answered by kentcdodds
gnapse asked this question in Q&A
Discussion options

You must be logged in to vote

You could make the request using regular fetch. Or you could skip the request and just assign document.cookie directly, but then in the unlikely event any of your data depends on the theme it would not revalidate... I have a situation like this in my app though so it does happen.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gnapse
Comment options

Answer selected by gnapse
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