Skip to content

How does setting initialData work? #57

Open
@webwelten

Description

@webwelten

Hey y'all,

the library is used in a nextjs project. I'm trying to make use of initialData for SSR as explained here. It seems that even with initialData set the endpoint is still requested in the client. I'm trying to understand what's going on in code but must admit that, without comments, it's not trivial for me to understand.

Could you help me debug the problem and figure out how initialData should be used correctly? This could also be an attempt to comment the code a little more.

I'm using useQuery and I'm wondering how initialData is been taken into account when running through your code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions