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

🥰 SDK 状态管理同步 react 层级架构升级为 useSyncExternalStore #129

Open
lvisei opened this issue Jan 23, 2024 · 0 comments
Open

Comments

@lvisei
Copy link
Member

lvisei commented Jan 23, 2024

💻 SDK 状态管理同步 react 层级架构升级为 useSyncExternalStore

更新 store 里的状态后,获取状态不是最新的, react 分片渲染导致的 tearing 问题,用 useSyncExternalStore 代替现在的事件通信同步 state 流程

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

1 participant