Skip to content
Discussion options

You must be logged in to vote

I could create a placeholder value for the cursor

I believe it may be better not to update the cursor or pageInfo at all. What has previously worked for others and in Relay for instance, afaik, is to append only the edge or item to the last page (or any appropriate one). All queries regarding the optimistic update will be blocked anyway while the mutation is ongoing, so there's no risk of "losing" the added optimistic item, and there's also no point of optimistically updating the cursor. In fact, since optimistic in the best case scenario only returns data and doesn't use cache updates directly and updates adds the new item to a list (regardless of whether it's optimistic or not) this s…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@Kingdutch
Comment options

@kitten
Comment options

@Kingdutch
Comment options

@kitten
Comment options

@Kingdutch
Comment options

Answer selected by Kingdutch
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