werkbank
    Preparing search index...

    Class AtomStore

    The central store for managing atom states.

    It uses RxJS BehaviorSubject to hold state and notify subscribers. It handles state updates via Immer producers.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Parameters

      • atom: Atom<any, any>

      Returns boolean

    • Type Parameters

      Parameters

      • atom: Atom<S, R>
      • Optionalcomparator: (prevState: S, state: S) => boolean

      Returns {
          getSnapshot: () => any;
          next: (action: Action<any>) => void;
          subscribe: (listener?: () => void) => () => void;
      }

    • Parameters

      • atom: Atom<any, any>

      Returns boolean