Type Alias SubscriberFunction<T>

SubscriberFunction<T>: ((value: T) => void) & Partial<Omit<SubscriberObject<T>, "next">>

A callback invoked when a store value changes. It is called with the latest value of a given store.

Type Parameters

  • T