Skip to content

Commit

Permalink
In order to prevent lint error in build
Browse files Browse the repository at this point in the history
The linter wants us to add all refrenced deps in useEffect, also actor
which is an object and is probably considered new on every call.
  • Loading branch information
spaceo committed Feb 17, 2025
1 parent a16c2b9 commit e78d995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/machines/search/useSearchMachineActor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const useSearchMachineActor = () => {
}

setPreviousPathname(currentPathname)
}, [searchParamString, searchQuery, pathname])
})

return actor
}
Expand Down

0 comments on commit e78d995

Please sign in to comment.