Skip to content

Can we skip “local” updates? #717

Answered by n1ru4l
ianberdin asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ianberdin, thank you for sharing this insight!

Personally, I did not perceive this as a performance issue for me, as I have been using live query with relay without many optimistic updates yet. Also, relay diffes the incoming result with the current cache result and automatically skips triggering re-renders if the previous and new values are the same.

But I 100% agree that this is something we should address. My first thought would be that we allow to store a unique identifier for the executer with each registered live query and then also send that unique identifier to the server when triggering invalidations 🤔 .

{
  "query": "query @live { something }",
  "extensions": { "live": { "…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ianberdin
Comment options

@n1ru4l
Comment options

@ianberdin
Comment options

@n1ru4l
Comment options

@ianberdin
Comment options

Answer selected by n1ru4l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants