@nosto/preact

    Function createStore

    • Parameters

      • overrides: Partial<State>

      Returns {
          clearOnChange: <T>(callback: (piece: T) => void) => void;
          getInitialState: () => State;
          getState: () => State;
          onChange: <T>(
              selector: (state: State) => T,
              callback: (piece: T) => void,
          ) => void;
          updateState: (newState: Partial<State>) => void;
      }

    MMNEPVFCICPMFPCPTTAAATR