Skip to content

useTableFilterStateValidation is causing unnecessary rerenders #1432

Description

@Arnei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions