We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0da8478 commit 35f6e65Copy full SHA for 35f6e65
src/components/CategoryList.tsx
@@ -9,7 +9,7 @@ const CategoryList = () => {
9
10
useEffect(() => {
11
setCategory(fetchedCategories[0]);
12
- }, [fetchedCategories]);
+ }, [setCategory, fetchedCategories]);
13
14
if (loading) return <div>Loading...</div>;
15
0 commit comments