Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Revert "Stabilize the identity of the mutate function" #337

Conversation

amacleay-cohere
Copy link
Contributor

Reverts #335

I realized while testing this with a much larger project today that this PR adds a problem: if the identity of the mutate function does happen to change, the abort() function no longer gets called with the prior instance's abort handler, but the current instance's abort handler! I am working on a fix for this, but in the meantime, #335 should just be reverted in a bugfix release.

@netlify
Copy link

netlify bot commented Mar 23, 2021

Deploy request for restful-react accepted.

Accepted with commit ad33f3a

https://app.netlify.com/sites/restful-react/deploys/60594245a7fed10007749729

amacleay-cohere added a commit to amacleay-cohere/restful-react that referenced this pull request Apr 16, 2021
Revisiting contiamo#335 in light of the issue noted in contiamo#337

First of all, stabilize the useMutate function even more by using a deep
compare effect. This better handles cases in which the argument to
`useMutate` is an inline object, which is the typical use case.
@amacleay-cohere
Copy link
Contributor Author

prefer #338

@amacleay-cohere amacleay-cohere deleted the revert-335-stabilize-use-mutate branch April 16, 2021 18:28
fabien0102 pushed a commit that referenced this pull request Apr 22, 2021
Revisiting #335 in light of the issue noted in #337

First of all, stabilize the useMutate function even more by using a deep
compare effect. This better handles cases in which the argument to
`useMutate` is an inline object, which is the typical use case.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant