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

remove unused arg3 in produceWithPatches #975

Merged

Conversation

BrianHung
Copy link
Contributor

Reading the source code, I came across an unused arg3. Seems like it initially threw an error if it was provided to guard against developers mistakenly passing in a patch listener, so basically unsupported from the beginning:

https://github.com/immerjs/immer/blame/ee1c977f5bf86e0f209e3df5f17bbc5bffb99dc3/src/immerClass.ts#L171
86be737#diff-3a3d78b97c1f27bfee63f1d6c1ca4e45d828fecfc6ed4ec7be92eea461639d6bR101

@netlify
Copy link

netlify bot commented Sep 2, 2022

Deploy Preview for quizzical-lovelace-dcbd6a canceled.

Name Link
🔨 Latest commit e94fe99
🔍 Latest deploy log https://app.netlify.com/sites/quizzical-lovelace-dcbd6a/deploys/631296382937a20008ccbf26

@mweststrate
Copy link
Collaborator

Looking good, thanks for the rename as well!

@mweststrate mweststrate merged commit 078e523 into immerjs:master Oct 22, 2022
@github-actions
Copy link
Contributor

🎉 This PR is included in version 9.0.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants