diff --git a/packages/block-editor/src/hooks/use-bindings-attributes.js b/packages/block-editor/src/hooks/use-bindings-attributes.js index 29f9b0621bfa7c..fdc617fda20c05 100644 --- a/packages/block-editor/src/hooks/use-bindings-attributes.js +++ b/packages/block-editor/src/hooks/use-bindings-attributes.js @@ -201,7 +201,7 @@ export const withBlockBindingSupport = createHigherOrderComponent( const _setAttributes = useCallback( ( nextAttributes ) => { - registry.batch( ( select, dispatch ) => { + registry.batch( () => { if ( ! blockBindings ) { setAttributes( nextAttributes ); return; @@ -242,8 +242,8 @@ export const withBlockBindingSupport = createHigherOrderComponent( bindings, ] of blockBindingsBySource ) { source.setValues( { - select, - dispatch, + select: registry.select, + dispatch: registry.dispatch, context: updatedContext, clientId, bindings,