Skip to content

Collections are ready when sync interface marks it ready #266

@KyleAMathews

Description

@KyleAMathews

We've been using the first commit as when the collection is ready but that has two issues:

  • for the initial sync, you have to know now to commit any transactions until all data is written — which isn't very intuitive or ergonomic as you might have to special sync write code for the first sync
  • it's fairly common to need to do blank commits atm e.g. if the backend has no data or if there's an error when loading — it's odd doing a blank commit vs. changing marking the collection as errored or ready.

Perhaps isReady() for the function name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions