Skip to content

Commit

Permalink
fix: disable eslint for dependencies array
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed May 13, 2021
1 parent 6b89a96 commit 08a8cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/front/src/views/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const Home: FC = () => {
if (state.data.count > 0) {
history.push('/search')
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [state.data.count])

return (
Expand Down
1 change: 1 addition & 0 deletions packages/front/src/views/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Search: FC = () => {
return
}
loadFlights({ ...state.query, offset })
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [offset])

return (
Expand Down

0 comments on commit 08a8cf2

Please sign in to comment.