expo / expo/todo-sync-example

partySocket is re-created every re-render

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.