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

Next.js is supported correclty? #19

Open
21Chani opened this issue Jul 31, 2023 · 1 comment
Open

Next.js is supported correclty? #19

21Chani opened this issue Jul 31, 2023 · 1 comment

Comments

@21Chani
Copy link

21Chani commented Jul 31, 2023

When I try to use a atom I get the following warn:
The result of getSnapshot should be cached to avoid an infinite loop

the data is fetched correctly, is just a warn, also fetcher is called 3-4 times

@21Chani 21Chani changed the title atomquery works with Next.js correclty? Next.js is supported correclty? Jul 31, 2023
@dkzlv
Copy link
Member

dkzlv commented Aug 4, 2023

Hi, @21Chani!

Short answer: no, it's not supported neither by @nanostores/query nor by nanostores in general. SSR support is very poor now. You can read more in this issue.

It's been this way for a long time, but it's going to change soon when we introduce Contexts. I hope this work will be finished in August.

@dkzlv dkzlv mentioned this issue Apr 3, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants