Skip to content

Commit

Permalink
ColorPalette: disable exhaustive-deps check on useEffect (#41253)
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 authored May 31, 2022
1 parent f3da470 commit 3034d52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/color-palette/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ function ColorPalette( {
scrollViewRef.current.scrollTo( { x: 0, y: 0 } );
}
}
// Temporarily disabling exhuastive-deps until the component can be refactored and updated safely.
// Please see https://github.com/WordPress/gutenberg/pull/41253 for discussion and details.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ currentSegment ] );

function isSelectedCustom() {
Expand Down

0 comments on commit 3034d52

Please sign in to comment.