T

UseStoreOptions

Options for useStore.

type UseStoreOptions<T> = { … }

Members

deps?React.DependencyList

Values the selector closes over. While they stay the same, a render reuses the last value instead of re-running the selector.

isEqual?(previous: T, next: T) => boolean

Decides whether a new selection equals the last one, which skips the re-render. Defaults to Object.is.