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

fix: useState parameter initialState can be function, which should be… #6033

Merged
merged 2 commits into from
Mar 9, 2023

Conversation

wssgcg1213
Copy link
Collaborator

image

rax-compat 的实现中, 将 initialValue 包装在一个对象中的做法, 绕过了 function 自执行的逻辑, 导致这种用法的情况下异常

@wssgcg1213 wssgcg1213 self-assigned this Mar 8, 2023
@wssgcg1213 wssgcg1213 added the need review Need Review label Mar 8, 2023
chenjun1011
chenjun1011 previously approved these changes Mar 8, 2023
@answershuto answershuto changed the base branch from master to release/next March 9, 2023 02:03
@answershuto answershuto dismissed chenjun1011’s stale review March 9, 2023 02:03

The base branch was changed.

@answershuto answershuto changed the base branch from release/next to master March 9, 2023 02:06
@answershuto answershuto changed the base branch from master to release/next March 9, 2023 02:06
@answershuto answershuto merged commit 8cfdfd9 into release/next Mar 9, 2023
@answershuto answershuto deleted the fix/rax-compat-use-state branch March 9, 2023 11:52
@ClarkXia ClarkXia mentioned this pull request Mar 15, 2023
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need review Need Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants