Skip to content

fix: remove invalid curried producer type#1216

Open
oriondean wants to merge 1 commit intoimmerjs:mainfrom
oriondean:fix/831-877-remove-curried-producer-optional-state
Open

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

Conversation

@oriondean
Copy link

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

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.

1 participant