Skip to content

Commit

Permalink
add dynamic data to useeffect dep array (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
esteban-gs authored Mar 24, 2024
1 parent 185fdab commit 2d311f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/views/SearchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function SearchResults(): JSX.Element {

React.useEffect(() => {
fetchSearchData();
}, [querySearchText, querySearchCategory, fetchSearchData]);
}, [querySearchText, querySearchCategory, volunteer, offers, orgs]);

return (
<div className={classes.searchResultsContainer}>
Expand Down

0 comments on commit 2d311f2

Please sign in to comment.