Describe the bug
I hope that I'm simply misunderstanding or have misconfigured something, but I can't seem to figure out why objects inside useQuery().data.MyQuery.someList[index] are changing references. This means they cannot be memoized, and the application rerenders unnecessarily
- On initial load, the TodosList and every Todo renders three times
- Upon creating or updating a todo, each individual Todo in the list rerenders
Thanks :)
For skimming (if you don't want to pull the repro repo):


Reproduction
sarink/urql-perf#2
Urql version
^2.2.3
Validations
Describe the bug
I hope that I'm simply misunderstanding or have misconfigured something, but I can't seem to figure out why objects inside
useQuery().data.MyQuery.someList[index]are changing references. This means they cannot be memoized, and the application rerenders unnecessarilyThanks :)
For skimming (if you don't want to pull the repro repo):
Reproduction
sarink/urql-perf#2
Urql version
^2.2.3
Validations