Replies: 1 comment
-
I would check if |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Describe the bug
I'm using react-query and next.js to have SSR (using dehydration). I return the dehydrated cache with the dehydratedState prop from the getServerSideProps method, and it works fine on my localhost (Windows). But when I run the same exact code on a Linux server, the dehydratedState prop is empty.
Here is my _app.js:
index.js:
Your minimal, reproducible example
N/A
Steps to reproduce
1.Just take a look at the code
Expected behavior
The dehydratedState prop has an array of queries on my localhost (Windows):
{mutations: Array(0), queries: Array(1)}
But it is empty on my Linux Server:
{mutations: Array(0), queries: Array(0)}
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
OS: Linux
react-query version
3.39.2
TypeScript version
No response
Additional context
"@tanstack/react-query": "^4.3.4"
"react": "17.0.2"
"next": "12.2.5"
Beta Was this translation helpful? Give feedback.
All reactions