Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of implementing optimistic UI with mutate #31

Merged
merged 3 commits into from
Oct 30, 2019
Merged

Add example of implementing optimistic UI with mutate #31

merged 3 commits into from
Oct 30, 2019

Conversation

sergiodxa
Copy link
Contributor

This example uses mutate to implement an optimistic UI, the API randomly "fail" to add the data of the POST so it some cases the UI will return to the previous state, in most cases it will work

@sergiodxa sergiodxa requested a review from shuding as a code owner October 29, 2019 18:38
@rauchg
Copy link
Member

rauchg commented Oct 29, 2019

Amazing @sergiodxa – We miss you!

@sergiodxa sergiodxa requested a review from shuding October 30, 2019 15:40
Copy link
Member

@shuding shuding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sergiodxa !

@shuding
Copy link
Member

shuding commented Oct 30, 2019

I think we'll need READMEs for all the examples in the future, but it's good to merge them for now.

@shuding shuding merged commit c649876 into vercel:master Oct 30, 2019
@sergiodxa sergiodxa deleted the example-optimistic-ui branch October 30, 2019 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants