-
Notifications
You must be signed in to change notification settings - Fork 27.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route "/" used Date.now()
instead of using performance
... when using TanStack react query and dynamicIO
#73785
Comments
I am also experiencing this bug as well |
I was able to remove this error by wrapping my Provider in a server component and calling await connection - then wrapping the call in Suspense.
unsure if this opts the entire subtree into client rendering though |
@TechFeatured yeah this will essentially opt everything downstream of this layout into being dynamic only. With PPR you can maybe still have a very generic static shell but since this is presumaly quite high in the application hierarchy no deeper layouts with their own Suspense boundaries will end up being prerendered. I can see that this use of |
This comment has been minimized.
This comment has been minimized.
I've opened a PR in Tanstack-query that will address this issue if landed. Will revisit once there is movement there |
Hey! I saw your PR merged a couple of hours ago (excellent work by the way, @gnoff ). Do you have a rough idea of when this would be available? Or if there is a way to use this new change in the meantime 🤗 |
Fixed in TanStack/query#8496 which was release in https://github.com/TanStack/query/releases/tag/v5.62.12 |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/TanStack/query
To Reproduce
Related to this issue:
#72024
Current vs. Expected behavior
I would expect no error to happen :)
But apparently the QueryClient uses a "forbidden" way to handle current time in its cache evaluation.
Provide environment information
Which area(s) are affected? (Select all that apply)
Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: