T
TanStack3y ago
stormy-gold

NextJS doesn't re-render on mutate

First time trying out zustand and react query for nextjs 13. The UI just doesn't seem to update after I make the query https://www.reddit.com/r/nextjs/comments/15z0d1z/unable_to_delete_item_from_zustand_store_with/
Reddit
From the nextjs community on Reddit
Explore this post and more from the nextjs community
1 Reply
metropolitan-bronze
metropolitan-bronze3y ago
Why are you storing todos in zustand, that doesn't make sense. The single source of truth should be the query cache.

Did you find this page helpful?