Skip to content

Commit

Permalink
Remove default deps value.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Jul 12, 2024
1 parent 34fad19 commit 5718c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/hooks/useInViewSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function notInViewCallback() {
* @param {Array} deps Deps passed to `useInViewSelect`'s `deps` argument.
* @return {*} The result of the selector if in-view; `undefined` if not in-view.
*/
export const useInViewSelect = ( mapSelect, deps = [] ) => {
export const useInViewSelect = ( mapSelect, deps ) => {
const isInView = useInView( { sticky: true } );
const latestSelectorResult = useRef();

Expand Down

0 comments on commit 5718c1b

Please sign in to comment.