Can I put `offix` into a Service Worker?
See original GitHub issueFeature Request
Is your feature request related to a problem? Please describe.
Would like to use offix as the single source of truth for my app online and off
Describe the solution you’d like
I’d also like to leverage some of the other features of Service Workers (push notifications, keep scripts - e.g., offix persisted across sessions - also uses IndexedDB like idb-localstorage)
Describe alternatives you’ve considered Seems like a match made in heaven. I couldn’t find any such references in the docs/issues/code… just curious if plans are brewing…
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Service Worker API - MDN Web Docs
A service worker is run in a worker context: it therefore has no DOM access, and runs on a different thread to the...
Read more >SharePoint Online service worker functionality - Microsoft Q&A
Hello,. I'd like to understand what SharePoint Online service worker does, and is it possible to register your own service workers?
Read more >Are Service Workers supported in an Outlook OnSend AddIn?
Service Workers are currently unsupported in addins and any Service Workers ... We track add-in feature requests on our user-voice page.
Read more >Legislative Update: Designated Public Service Worker
These individuals' residential and familial information is no longer a public record and they can use a redaction form to request that a...
Read more >Service workers - web.dev
There is only one service worker per PWA, but that doesn't mean you need to place the code only in one file. A...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you so much. No worries. I think we might explore service workers for more comprehensive use cases. For example we can have fully offline website with service worker and offix together.
Hi @loganpowell, thanks for reaching out. Would you mind elaborating a little bit with the use cases you envisage? I am trying to discern what advantages it will provide. My experience with service workers is limited but from what I can see (some) of the benefits they provide are automatically handled in
offixsuch as network management, background sync’ing etc.Any information you can provide would be helpful!