Optional
areInputValuesEqual?: (a: any, b: any) => booleanIf specified, overrides the function used to compare input values
Optional
bindings?: DependenciesTBindings that cause the consumer to rerender. Undefined values are ignored
Optional
detectInputChanges?: booleantrue
– areInputValuesEqual
is used to compare the old and new results of makeComparableInputValue
when any of the input
bindings 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 and the transformer will always be run any time the bindings change.Optional
makeComparableInputValue?: () => anyBy 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. The generated value will be remembered until the next
comparison is needed. Comparisons are performed using areInputValuesEqual
A component that is rerendered based on input binding changes.
A BindingsConsumer must have exactly one function child.
The general usage pattern is something like: