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

updateReducer中的状态更新问题 #74

Open
DaphnisLi opened this issue Mar 22, 2022 · 2 comments
Open

updateReducer中的状态更新问题 #74

DaphnisLi opened this issue Mar 22, 2022 · 2 comments

Comments

@DaphnisLi
Copy link

https://github.com/7kms/react-illustration-series/blob/master/docs/main/hook-state.md#:~:text=%E8%B0%83-,%E7%94%A8,-updateWorkInProgressHook%E8%8E%B7%E5%8F%96workInProgressHook

这个地方的state改变应该是 1 => 3 => 2 的一个过程吧?这里只是展示了最后一步的图吗?

image

@7kms
Copy link
Owner

7kms commented Mar 29, 2022

对,这里画的是最终状态

@DaphnisLi
Copy link
Author

对,这里画的是最终状态

ok,谢谢大佬

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

No branches or pull requests

2 participants