Skip to content

Commit 3cbbe1b

Browse files
jeremyfeltAhmad Awais ⚡️
authored andcommitted
📦 NEW: @wordpress/hooks as an available external (#127)
When implementing a block, it would be helpful to have access to the `applyFilters` and `withFilters` provided by Gutenberg. For example: ``` import { applyFilters, } from '@wordpress/hooks'; const getSomething = function() { return applyFilters( 'blocks.myBlock.getSomething', 'defaultvalue' ); } ```
1 parent acee9fe commit 3cbbe1b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/cgb-scripts/config/externals.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const externals = [
2424
'plugins',
2525
'editor',
2626
'blocks',
27+
'hooks',
2728
'utils',
2829
'date',
2930
'data',

0 commit comments

Comments
 (0)