POLAR reference
    Preparing search index...

    Function subscribe

    • Subscribe to a store value of the core store or any plugin's store.

      Type Parameters

      • T extends StoreId

      Parameters

      • map: any

        Map to subscribe the value at.

      • storeName: T

        Either 'core' for the core store or the plugin ID for a plugin's store.

      • parameterName: StoreParameter<T>

        Name of the parameter to update.

      • callback: SubscribeCallback

        Function to call on updates.

      • Optionaloptions: WatchOptions<boolean>

        Additional options to give to watch.

      Returns WatchHandle