Introduced with #1418, useTableFilterStateValidation causes the whole App to rerender if table filter or stats (the numbers left of the "Add Event" button) change. We should avoid rerendering the whole App whenever possible as that can get pretty expensive.
I think we can reasonably expect our app to not corrupt our local storage during operation, so a simple solution may be to have the useEffect hook in useTableFilterStateValidation only run once on mount.
Introduced with #1418,
useTableFilterStateValidationcauses the whole App to rerender if table filter or stats (the numbers left of the "Add Event" button) change. We should avoid rerendering the whole App whenever possible as that can get pretty expensive.I think we can reasonably expect our app to not corrupt our local storage during operation, so a simple solution may be to have the
useEffecthook inuseTableFilterStateValidationonly run once on mount.