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 and youknowriad committed Jun 3, 2022
1 parent 0a3a88e commit 496ce2a
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 496ce2a

Please sign in to comment.