Rxova
Skip to content

UseSharedSelectorOptions

optional equal?: (a, b) => boolean;

Whether two selected values count as the same. Default Object.is.

A selector returning an object or array builds a new one every time it runs, so Object.is never matches and the component re-renders on every write to the store. Pass a shallow comparison for those.

ParameterType
aunknown
bunknown

boolean


optional scope?: ShareScope;

How much to share. Default ‘everywhere’.

UseSharedStateOptions.scope


optional store?: string;

Store name; keys live in a namespace per store. Default ‘use-everywhere’.

UseSharedStateOptions.store