Skip to content

Commit

Permalink
Remove mention of store hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 5, 2024
1 parent bcce8ea commit 7023906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/composite/legacy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function useCompositeState(
): CompositeState {
deprecated( `wp.components.__unstableUseCompositeState`, {
since: '6.7',
alternative: `Composite.useStore`,
alternative: `Composite`,
} );

const {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/composite/legacy/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe( 'Shows a deprecation warning', () => {
it( 'useCompositeState', () => {
renderHook( () => useCompositeState() );
expect( console ).toHaveWarnedWith(
'wp.components.__unstableUseCompositeState is deprecated since version 6.7. Please use Composite.useStore instead.'
'wp.components.__unstableUseCompositeState is deprecated since version 6.7. Please use Composite instead.'
);
} );
it( 'Composite', () => {
Expand Down

0 comments on commit 7023906

Please sign in to comment.