Skip to content

Commit

Permalink
Components: refactor ItemGroup to pass exhaustive-deps (#45531)
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 authored Nov 8, 2022
1 parent 9900817 commit 6f0e046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
### Internal

- `PaletteEditListView`: Update to ignore `exhaustive-deps` eslint rule ([#45467](https://github.com/WordPress/gutenberg/pull/45467)).
- `ItemGroup`: Update to pass `exhaustive-deps` eslint rule ([#45531](https://github.com/WordPress/gutenberg/pull/45531)).

### Experimental

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/item-group/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const ItemWithChevron = ( {

const itemClassName = useMemo(
() => cx( ! alwaysVisible && appearingChevron, className ),
[ alwaysVisible, className, cx ]
[ alwaysVisible, className, cx, appearingChevron ]
);

const chevronIconClassName = useMemo(
Expand Down

0 comments on commit 6f0e046

Please sign in to comment.