UseSharedSelectorOptions
Extends
Section titled “Extends”Properties
Section titled “Properties”equal?
Section titled “equal?”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
a | unknown |
b | unknown |
Returns
Section titled “Returns”boolean
scope?
Section titled “scope?”optional scope?: ShareScope;How much to share. Default ‘everywhere’.
Inherited from
Section titled “Inherited from”store?
Section titled “store?”optional store?: string;Store name; keys live in a namespace per store. Default ‘use-everywhere’.