-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
Describe the bug
I was using why-did-you-render in local and noticed a bunch of unnecessary re-renders happening because of something related to react-query that goes beyond my power as a lib consumer.
To Reproduce
- Go to https://next-auth-1b8mmpq6w.vercel.app/
- Check console.
- Switch tab back and forth to regain window focus.
- Check console again to see unnecessary re-renders happening.
Expected behavior
It should not re-render if data is the same.
Additional context
- It's a Next.js based demo, here's the codebase.
- If you go to https://next-auth-1b8mmpq6w.vercel.app/swr you are going to see the same thing but handled by SWR. There are not re-renders on stale re-fetching that returns the same data.
Metadata
Metadata
Assignees
Labels
No labels