Skip to content

random gathering of use cases #2

Open
@gr2m

Description

@gr2m

Offline, unsynched changes

I guess that's the first use case that comes to people's mind when they think about oflline-first.

In minutes.io, I show a blue bar at the top of the browser window, telling the user that she/he is working offline, and that there are X unsynched changes.

In Hoodie, devs can subscribe to these events

  • disconnected
  • reconnected

and get locally changed objects with hoodie.store.changedObjects()

Signed in, but invalid session

with offline first, you can be signed in and work with the app, but your authentication against the backend might be invalidated.

At minutes.io, I show a yellow exclamation mark sign asking the user that she/he needs to reauthenticate.

In Hoodie, we have an extra events for that

  • unauthenticated
  • reauthenticated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions