-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(core): add optimisticUpdateMap
prop on useUpdate
, useUpdateMany
and useForm
#4914
Conversation
🦋 Changeset detectedLatest commit: 6c57ef1 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for lighthearted-pastelito-e86ad1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for refine-doc-live-previews ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for imaginative-sundae-1fd394 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for aquamarine-panda-e208bf ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for zippy-semolina-4ad81e ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for stupendous-taffy-33f80c ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…edev/refine into ref-258/flexible-optimistic-update
If the mutation mode is defined as
optimistic
theuseUpdate
hook will automatically update the cache without waiting for the response from the server. You may want to disable or customize this behavior. You can do this by passing theoptimisticUpdateMap
prop.list
,many
anddetail
are the keys of theoptimisticUpdateMap
object. For automatically updating the cache, you should pass thetrue
. If you want not update the cache, you should pass thefalse
.For
useForm
:Self Check before Merge
Please check all items below before review.