Skip to content

server error with nextjs , and hydration in v5 #8528

Closed as not planned
Closed as not planned
@artainjast

Description

@artainjast

Describe the bug

server error with nextjs , and hydration in v5

Your minimal, reproducible example

https://stackblitz.com/github/tanstack/query/tree/main/examples/react/nextjs-app-prefetching?embed=1&theme=light&preset=node&file=src/index.tsx

Steps to reproduce

  1. it does not need any steps , it occur when you starting the app (event on dev or production mode).

Expected behavior

as a user , i don't except this error happen , and it make some conflicts with building and compiling for production

How often does this bug happen?

Every time

Screenshots or Videos

Image

Platform

  • OS : [MacOS - stackblitz]

Tanstack Query adapter

react-query

TanStack Query version

"^5.64.0" ,

TypeScript version

"5.7.2"

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions