Skip to content

Commit

Permalink
Fix React CI warnings in custom-hooks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertJoonas committed Jul 15, 2024
1 parent d16424f commit 285d1e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/dashboard/custom-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export function useMountedEffect(fn, deps) {
} else {
mounted.current = true
}
}, deps)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [...deps, fn])
}

const DEBOUNCE_DELAY = 300
Expand Down

0 comments on commit 285d1e2

Please sign in to comment.