Skip to content

Commit

Permalink
remove extraneous onLoad args (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
camdendotlol authored May 20, 2024
1 parent 7714535 commit a26e09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-data/src/hooks/CoreData.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const useLoader = (onLoad, params = {}, deps = []) => {
useEffect(() => {
setLoading(true);

onLoad(baseUrl, projectIds, { ...params, page })
onLoad({ ...params, page })
.then((d) => setData(d))
.finally(() => setLoading(false));
}, [...deps, page]);
Expand Down

0 comments on commit a26e09b

Please sign in to comment.