Skip to content

fix: remove invalid curried producer type#1216

Merged
mweststrate merged 1 commit intoimmerjs:mainfrom
oriondean:fix/831-877-remove-curried-producer-optional-state
May 4, 2026
Merged

fix: remove invalid curried producer type#1216
mweststrate merged 1 commit intoimmerjs:mainfrom
oriondean:fix/831-877-remove-curried-producer-optional-state

Conversation

@oriondean
Copy link
Copy Markdown
Contributor

The removed curried producer type aims to resolve issues #831 and #877.

There's a couple of issues with the type, hence its removal in favour of the existing types:

  • It expects an initialState argument to be passed within the recipe itself, which isn't a valid use case
  • It allows state to be undefined even if the user has passed in a state generic type, which loosens inference

@mweststrate mweststrate merged commit b40b04f into immerjs:main May 4, 2026
@mweststrate
Copy link
Copy Markdown
Collaborator

This looks more accurate indeed, thanks!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

🎉 This PR is included in version 11.1.6 🎉

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.

2 participants