laurentpayot / firestore-web-worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

firestore-web-worker

This contains sample implementations of using web workers with persistence in Firestore by using the experimentalForce option provided in the experimental build (See context).

There are 2 sample apps:

  • shared-worker uses a SharedWorker to run a single instance of Firestore that is shared across tabs.
  • localstorage uses LocalStorage to track and manage which which tab is allowed to use persistence (only one tab can use persistence at a time).

About


Languages

Language:JavaScript 92.2%Language:HTML 7.8%