Type Alias UseBindingEffectCallback<DependenciesT>

UseBindingEffectCallback<DependenciesT>: ((bindingValues: InferBindingValueTypes<DependenciesT>, bindings: DependenciesT) => void)

Called when the associated bindings change, depending on the options provided to useBindingEffect.

Type Parameters

Type declaration

    • (bindingValues, bindings): void
    • Parameters

      • bindingValues: InferBindingValueTypes<DependenciesT>

        The extracted values of the associated named bindings. If named bindings aren't used, this will be an empty object.

      • bindings: DependenciesT

        The original named bindings if named bindings are used or an empty object otherwise.

      Returns void