Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Offix network state consumable by users #854

Open
wtrocki opened this issue Sep 23, 2020 · 2 comments
Open

Offix network state consumable by users #854

wtrocki opened this issue Sep 23, 2020 · 2 comments

Comments

@wtrocki
Copy link
Contributor

wtrocki commented Sep 23, 2020

Feature Request

Offline enabled apps sometimes need offline indicators.
This is specific to apps we use to give better demos.
Currently we have number of offline interfaces:

  1. useNetworkStatus hook (tightly coupled with Apollo) and using some home build listeners
  2. Offix datastore network - complex and subscription tied solution that might not be easy to expose.
  3. Some custom implementation of the network state that we can reuse but they base on 1

We need to come with a strategy to get this organized into something that will be common and reusable even on sample apps.

@wtrocki
Copy link
Contributor Author

wtrocki commented Sep 23, 2020

Restoring network state hook in offix datastore will give devleopers ability to understand when their data is replicated + replication events itself.

CC @kingsleyzissou

@kingsleyzissou
Copy link
Contributor

@wtrocki I built a much better hook for OVP that I can possibly put into this package now. Since we don't have to worry about the legacy support any more, this is not as big of an issue. #1070 exposed the network status of the datastore to make that possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants