partySocket is re-created every re-render
Open
- Dominant language
- TypeScript
- Stars
- 22
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Was looking through the code to update it to incremental sync and saw this:
https://github.com/expo/todo-sync-example/blob/1442f9bffc32c58ac5b22e5c387f448d73198b9d/apps/mobile/app/useSync.ts#L37
`createPartySocket` will be called on every re-render of the component which calls `useSync`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.