data-cap
    Preparing search index...

    Interface DataStore<TFields>

    The store contract the standalone runtime implements -- useSyncExternalStore-compatible without importing React.

    interface DataStore<TFields> {
        getSnapshot(): DataState<TFields>;
        subscribe(listener: () => void): () => void;
    }

    Type Parameters

    • TFields

    Hierarchy (View Summary)

    Index
    • Registers listener to be called after every committed state change; returns an unsubscribe function.

      Parameters

      • listener: () => void

      Returns () => void