Skip to content

FR: Firestore offline persistence in web workers #983

Closed
@lamplightdev

Description

  • 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.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions