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

The third parameter of useReducer #3

Closed
yezhi780625 opened this issue Oct 30, 2018 · 1 comment · Fixed by #4
Closed

The third parameter of useReducer #3

yezhi780625 opened this issue Oct 30, 2018 · 1 comment · Fixed by #4

Comments

@yezhi780625
Copy link

The third parameter initialAction seems not implemented in useImmerReduer.

useReducer accepts an optional third argument, initialAction. If provided, the initial action is applied during the initial render.

https://codesandbox.io/s/olxp9qw68z

@mweststrate
Copy link
Collaborator

Fixed in 0.1.0

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 a pull request may close this issue.

2 participants