Skip to content

Commit

Permalink
Fix experimental useHasRecursion deprecation (#60451)
Browse files Browse the repository at this point in the history
Unlinked contributors: albanyacademy.

Co-authored-by: talldan <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ramonjd <[email protected]>
  • Loading branch information
4 people authored and tellthemachines committed Apr 9, 2024
1 parent 64b473e commit 94aa4f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ export const DeprecatedExperimentalRecursionProvider = ( props ) => {
return <RecursionProvider { ...props } />;
};

export const DeprecatedExperimentalUseHasRecursion = ( props ) => {
export const DeprecatedExperimentalUseHasRecursion = ( ...args ) => {
deprecated( 'wp.blockEditor.__experimentalUseHasRecursion', {
since: '6.5',
alternative: 'wp.blockEditor.useHasRecursion',
} );
return useHasRecursion( ...props );
return useHasRecursion( ...args );
};

0 comments on commit 94aa4f6

Please sign in to comment.