Closed djwoun closed 1 month ago
Problem: Page updates monthQuery if monthQuery is an empty string, causes a state update every time the component renders with an empty monthQuery, leading directly into another render. FIx: useEffect hook that only runs once.
MoH - /donationItem` page error #11
Description
Problem: Page updates monthQuery if monthQuery is an empty string, causes a state update every time the component renders with an empty monthQuery, leading directly into another render. FIx: useEffect hook that only runs once.
Relevant issue(s)
MoH - /donationItem` page error #11