Skip to content

Commit

Permalink
chore: Suppress hook warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
czabaj committed Feb 14, 2021
1 parent 961b379 commit 0ba14c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/usePopperTooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function usePopperTooltip(

const defaultModifiers = React.useMemo(
() => [{ name: 'offset', options: { offset: finalConfig.offset } }],
// eslint-disable-next-line react-hooks/exhaustive-deps
isArray(finalConfig.offset) ? finalConfig.offset : []
);

Expand Down Expand Up @@ -90,6 +91,7 @@ export function usePopperTooltip(
? finalConfig.trigger.includes(trigger)
: finalConfig.trigger === trigger;
},
// eslint-disable-next-line react-hooks/exhaustive-deps
isArray(finalConfig.trigger) ? finalConfig.trigger : [finalConfig.trigger]
);

Expand Down

0 comments on commit 0ba14c5

Please sign in to comment.