rocicorp / replicache

Realtime Sync for Any Backend Stack
https://doc.replicache.dev
1.05k stars 37 forks source link

If this tab crashes or is frozen before updateClients completes this temp head will never be cleaned up. #743

Closed arv closed 2 years ago

arv commented 2 years ago

If this tab crashes or is frozen before updateClients completes this temp head will never be cleaned up.

We should update client-gc.ts, so that when it gc's a client it also cleans up any lingering temp heads for that client.

_Originally posted by @grgbkr in https://github.com/rocicorp/replicache/pull/740#discussion_r761362046_