🥰 SDK 状态管理同步 react 层级架构升级为 useSyncExternalStore
Open
- Dominant language
- TypeScript
- Stars
- 232
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
### 💻 SDK 状态管理同步 react 层级架构升级为 useSyncExternalStore
- [useSyncExternalStore](https://zh-hans.react.dev/reference/react/useSyncExternalStore)
更新 store 里的状态后,获取状态不是最新的, react 分片渲染导致的 tearing 问题,用 useSyncExternalStore 代替现在的事件通信同步 state 流程
Contributor guide
Research direction
Start by locating the SDK store and the React event-based state synchronization flow, then read the linked useSyncExternalStore documentation. The work is complete when React consumers receive current store state without tearing and the existing synchronization path has been replaced or updated accordingly; the issue names no specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100