You're overusing useMemo: Rethinking Hooks memoization
DRANK
In certain cases, useMemo is irrelevant, overused, and likely harmful to the performance of your application. Learn these situations and how to avoid them.