pCon.basket - Plugin Development
    Preparing search index...

    Interface ReactExternalStore<T>

    An external store which can be used inside a react functional react component.

    interface ReactExternalStore<T> {
        value: T;
        setValue(pValue: T): void;
        use(): T;
    }

    Type Parameters

    • T
    Index
    value: T

    Current value of the store.

    • Assign a new value to the store and notify all listeners.

      Parameters

      • pValue: T

      Returns void

    • React hook which can be used inside a functional component to get the value of the store.

      Returns T