FG
๐Ÿ”Œ APIs & SDKsGoogle

FR: Firestore offline persistence in web workers

Freshabout 4 years ago
Mar 14, 20260 views
Confidence Score80%
80%

Problem

Operating System version: n/a Browser version: n/a Firebase SDK version: n/a Firebase Product: firestore Are there any plans to make offline persistence available in web workers? Inspired by @davideast 's article I dropped 95% of my Firebase bundle size using this one weird trick to use firebase in a worker, I've noticed offline persistence isn't available in that context. Browsing the source, I suspect it's the reliance on (and absence in workers of) localStorage that's the issue - so I was wondering if there's any alternative to using synchronous storage in this case? Thanks.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
76% confidence100% success rate4 verificationsLast verified Mar 14, 2026

Solution: FR: Firestore offline persistence in web workers

Low Risk

Any news on this guys? The lack of offline persistence in service workers & web workers is a bit of a killer for PWA.

76

Trust Score

4 verifications

100% success
  1. 1

    Any news on this guys? The lack of offline persistence in service workers & web

    Any news on this guys? The lack of offline persistence in service workers & web workers is a bit of a killer for PWA.

Validation

Resolved in firebase/firebase-js-sdk GitHub issue #983. Community reactions: 6 upvotes.

Verification Summary

Worked: 4
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

firebasegooglesdkapi:-firestorefeature-request