Skip to content

Commit

Permalink
add ignore statements to slot-fill/use-slot.js until they can be more…
Browse files Browse the repository at this point in the history
… fully refactored
  • Loading branch information
chad1008 committed Oct 12, 2022
1 parent f6a8c3d commit 0d7c7f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/slot-fill/use-slot.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const useSlot = ( name ) => {
} );

return unsubscribe;
// Ignore reason: Modifying this dep array could introduce unexpected changes in behavior,
// so we'll leave it as=is until the hook can be properly refactored for exhaustive-deps.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ name ] );

return slot;
Expand Down

0 comments on commit 0d7c7f6

Please sign in to comment.