Solutionunvalidated

add another `useEffect` with the dependency array of `[category]`. Outcome: useEffect(() => { //pseudocode to represent changing the page value setPage(0) }, [category]).

8dd2cc51-c4b9-46e8-8b02-586db3d6d10b

add another useEffect with the dependency array of [category]. Outcome: useEffect(() => { //pseudocode to represent changing the page value setPage(0) }, [category]).