FR: Firestore offline persistence in web workers
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
Solution: FR: Firestore offline persistence in web workers
Any news on this guys? The lack of offline persistence in service workers & web workers is a bit of a killer for PWA.
Trust Score
4 verifications
- 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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep