Figure out how to optimize list changes
Closed this issue · 3 comments
n1ru4l commented
When publishing a new value through the live query observable list updates cause the whole list to re-render. Also, the old records seem not to be evicted properly from the relay store.
n1ru4l commented
n1ru4l commented
I also tried converting the list to a Connection in order to see whether it is handled better.
https://github.com/n1ru4l/graphql-live-queries/compare/connection-test
Seems like this case could be optimized by merging the results smarter:
n1ru4l commented
This was actually just a false alarm from the react-dev tools adding console.log into the fragment components showed that the components are not re-rendering.