Skip to content

Commit

Permalink
Provide reason via comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Nov 7, 2023
1 parent b5bc01b commit 9fed8e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/data/src/components/use-select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ function useMappingSelect( suspense, mapSelect, deps ) {
() => Store( registry, suspense ),
[ registry, suspense ]
);

// These are "pass-through" dependencies from the parent hook,
// and the parent should catch any hook rule violations.
// eslint-disable-next-line react-hooks/exhaustive-deps
const selector = useCallback( mapSelect, deps );
const { subscribe, getValue } = store( selector, isAsync );
Expand Down

0 comments on commit 9fed8e4

Please sign in to comment.