Skip to content

Commit

Permalink
fix: lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder committed Oct 19, 2020
1 parent 791e83a commit e3673a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/useInView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export function useInView({
);
}
},
// We break the rule here, because we aren't including the actual `threshold` variable
// eslint-disable-next-line react-hooks/exhaustive-deps
[
// If the threshold is an array, convert it to a string so it won't change between renders.
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit e3673a9

Please sign in to comment.