tanstack invalidateQueries not working within a Nextjs page layout #9651
Unanswered
clemensmol
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Nextjs with the pages router. I'm having troubles getting invalidateQueries to work within pages with custom layouts.
I'm currently using invalidateQueries with refetchType: 'all' as a temporary fix, but this shouldn't be necessary right? The queryKey is valid, if I run invalidateQueries on page A the data is reloaded, as expected.
I'm probably missing something... Anyone else got this working?
Beta Was this translation helpful? Give feedback.
All reactions