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

From 组件中使用 schemaFrom 时,schema 未生效问题 #1862

Closed
GleanCoder1116 opened this issue Aug 3, 2021 · 0 comments · Fixed by #1863
Closed

From 组件中使用 schemaFrom 时,schema 未生效问题 #1862

GleanCoder1116 opened this issue Aug 3, 2021 · 0 comments · Fixed by #1863
Labels
3.x bug Something isn't working comp:form

Comments

@GleanCoder1116
Copy link
Collaborator

GleanCoder1116 commented Aug 3, 2021

关于React hooks中的钩子中,像useEffect、useCallback具备监听参数的钩子时。如果监听的为数组,且进行 堆栈 类的操作
shift、unshift、pop、push均不能触发hooks相关钩子的二次更新

在定位时候发现是同时也存在key的问题;key未发生改变;导致该节点没有二次更新

@GleanCoder1116 GleanCoder1116 added the bug Something isn't working label Aug 3, 2021
@GleanCoder1116 GleanCoder1116 linked a pull request Aug 4, 2021 that will close this issue
GleanCoder1116 pushed a commit that referenced this issue Aug 4, 2021
solarjoker added a commit that referenced this issue Aug 5, 2021
@Flcwl Flcwl mentioned this issue Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x bug Something isn't working comp:form
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants