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

state 调整当前指针,不需要使用 deepClone #6

Open
yhf2000 opened this issue Jan 29, 2022 · 0 comments
Open

state 调整当前指针,不需要使用 deepClone #6

yhf2000 opened this issue Jan 29, 2022 · 0 comments

Comments

@yhf2000
Copy link
Collaborator

yhf2000 commented Jan 29, 2022

deepClone 会将其内部所有的信息都进行一遍复制,浪费计算资源
list 可以使用 [...list]
obj 可以使用 {...obj}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant