Skip to content

Unnecessary rendering on data re-fetching #938

@martinbavio

Description

@martinbavio

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

  1. Go to https://next-auth-1b8mmpq6w.vercel.app/
  2. Check console.
  3. Switch tab back and forth to regain window focus.
  4. Check console again to see unnecessary re-renders happening.

Expected behavior
It should not re-render if data is the same.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions