Seems it's because relay-nextjs is using shallow comparison so if we're using array in the qurey variables, the useHaveQueryVariablesChanges will return true by each of the re-render
Thank you for bringing this up! This should be fix with the 2.0 release later today or tomorrow as we now use a deep-equal comparison. Will update here upon release!
https://github.com/RevereCRE/relay-nextjs/blob/d9ad8aafba17ec8bc61f4bc054e892b6bfbe9b1f/relay-nextjs/src/wired/component.tsx#L88-L92
Seems it's because relay-nextjs is using shallow comparison so if we're using array in the qurey variables, the
useHaveQueryVariablesChanges
will return true by each of the re-renderIs that possible to use deep compare?