Skip to content
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

How does setting initialData work? #57

Open
webwelten opened this issue May 11, 2022 · 0 comments
Open

How does setting initialData work? #57

webwelten opened this issue May 11, 2022 · 0 comments

Comments

@webwelten
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant