Skip to content

Commit

Permalink
also ignore useUpdateEffect from utils directory
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Oct 17, 2022
1 parent 15eac71 commit 42ccabf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/components/src/utils/hooks/use-update-effect.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ function useUpdateEffect( effect, deps ) {
}
mounted.current = true;
return undefined;
// Disable reasons:
// 1. This hook needs to pass a dep list that isn't an array literal
// 2. `effect` is missing from the array, and will need to be added carefully to avoid additional warnings
// see https://github.com/WordPress/gutenberg/pull/41166
// eslint-disable-next-line react-hooks/exhaustive-deps
}, deps );
}

Expand Down

0 comments on commit 42ccabf

Please sign in to comment.