Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 35f6e65

Browse files
committed
added setCategory dependency
1 parent 0da8478 commit 35f6e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/components/CategoryList.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const CategoryList = () => {
99

1010
useEffect(() => {
1111
setCategory(fetchedCategories[0]);
12-
}, [fetchedCategories]);
12+
}, [setCategory,fetchedCategories]);
1313

1414
if (loading) return <div>Loading...</div>;
1515

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /