Skip to content

Commit

Permalink
Unlock private selector and action
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed May 28, 2024
1 parent 4b83b29 commit 629056c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/block-editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ export const updateBlockAttributes =
} );

if ( updatesBySource.size ) {
const context = registry
.select( STORE_NAME )
.getBlockContext( clientId );
const context = unlock(
registry.select( STORE_NAME )
).getBlockContext( clientId );
for ( const [ source, boundAttributes ] of updatesBySource ) {
if ( source.setValues ) {
source.setValues( {
Expand Down
4 changes: 3 additions & 1 deletion packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ export const getBlockAttributes = createRegistrySelector(
isProcessingBindings = true;

const newAttributes = { ...blockAttributes };
const context = select( STORE_NAME ).getBlockContext( clientId );
const context = unlock( select( STORE_NAME ) ).getBlockContext(
clientId
);
const sources = unlock(
select( blocksStore )
).getAllBlockBindingsSources();
Expand Down

0 comments on commit 629056c

Please sign in to comment.