rocicorp / replicache

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

Replicache should operate in-memory on Firefox/Private mode #1029

Closed aboodman closed 1 year ago

aboodman commented 1 year ago

When in private mode on Firefox, IDB throws the following error when accessing Replicache:

CleanShot 2022-10-24 at 13 56 47@2x

I'm not sure if it is possible to determine if Firefox is in private mode experimentally (except maybe by catching this error). If so it would be great to fallback to an in-memory kvstore.

As an easier stop-gap, we should have a better error message, like: "Replicache is not supported in Firefox private browsing mode.".