You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d2fa09
Browse filesBrowse the repository at this point in the historyBrowse files
fix(zero-swift): list the group's running clients in activeClients
Two Zero instances of one client group in one process sent only themselves
in initConnection's activeClients, so zero-cache deleted the other client
and its queries while it ran. The instances on one ReplicaDatabase now
track each other, as ActiveClientsManager does in JS, and when one closes
the others of its group send deleteClients for it once.
Amp-Thread-ID: https://ampcode.com/threads/T-c513a037-a257-45e0-b9a9-15c15edfe859
Co-authored-by: tmm <tmm@tmm.dev>
Two `Zero` instances of one client group in one process (the same user, `storageKey`, and storage, such as two windows) no longer drop each other's queries: `initConnection` lists every running client of the group in `activeClients`, as in JS, so zero-cache doesn't delete the other one. When one closes, the others send `deleteClients` for it once.
0 commit comments