|
|
|
@ -69,6 +69,10 @@ export const useMatches = ({ fetch }: Props) => { |
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
fetchMatches(0).then(setMatches) |
|
|
|
fetchMatches(0).then(setMatches) |
|
|
|
pageRef.current = 1 |
|
|
|
pageRef.current = 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return () => { |
|
|
|
|
|
|
|
setMatches(initialState) |
|
|
|
|
|
|
|
} |
|
|
|
}, [fetchMatches, userPreferences]) |
|
|
|
}, [fetchMatches, userPreferences]) |
|
|
|
|
|
|
|
|
|
|
|
const preparedMatches = useMemo(() => ({ |
|
|
|
const preparedMatches = useMemo(() => ({ |
|
|
|
|