query
query copied to clipboard
Next.js is supported correclty?
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
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.
It's weird, but I'm getting the queries re-requested when navigating through pages (they're all in client components, queries are made inside useStore).
Maybe I did something wrong. I'll try again with a small demo