Optional
areIf specified, overrides the function used to compare input values
_.isEqual
, which can be globally overridden using setAreEqual
_.isEqual
, which can be globally overridden using setAreEqual
Optional
depsOn a rerender, deps changes are treated like bindings changes. That is, if they change between renders, the input change detection
logic is run (using the areInputValuesEqual
, detectInputChanges
, and makeComparableInputValue
values) using the limiter (see
LimiterOptions
).
Optional
detecttrue
– areInputValuesEqual
is used to compare the old and new results of makeComparableInputValue
when any of the input
bindings or deps
are changed. If the values are equal, the transformer won't be run. If they're unequal, the transformer will be
run.false
– old and new values aren't compared, the transformer will always be run.false
Optional
idA technical but human-readable ID
Optional
limitMSecThe duration to debounce/throttle for
0
Optional
limitThe limiter mode
'trailing'
Optional
limitThe type of limiter
'debounce'
Optional
makeBy default, when detectInputChanges
is true, the input is compared using all specified bindings. This behavior can be overridden by
providing this function to generate a value that can be compared instead. This value will be remembered until the next comparison is
needed. Comparisons are performed using areInputValuesEqual
By default, when detectInputChanges
is true, the input is compared using all specified bindings. This behavior can be overridden by
providing this function to generate a value that can be compared instead. This value will be remembered until the next comparison is
needed. Comparisons are performed using areInputValuesEqual
A function that returns the values of all input bindings (including any additional bindings) and the deps
A function that returns the values of all input bindings (including any additional bindings) and the deps
Optional
priorityThe priority
DEFAULT_PRIORITY
(0
)
Optional
queueThe queue
result of useDefaultQueue()
Optional
triggertrue
, the callback is triggered every time this is mounted in addition to whenever the input bindings change.false
, the callback is only triggered when the input bindings change.'first'
, the callback is triggered on the first mount and whenever the input bindings change'if-input-changed'
, the callback is triggered on mount if the bindings have changed since the last evaluation of the
transformer'if-input-changed'
Generated using TypeDoc
If specified, overrides the function used to compare input values