Page component got mount again when using array in query variables
vip30 opened this issue · 2 comments
vip30 commented
relay-nextjs/relay-nextjs/src/wired/component.tsx
Lines 88 to 92 in d9ad8aa
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
Is that possible to use deep compare?
rrdelaney commented
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!