Skip to content

Maximum update depth exceeded #453

@octopus-travels

Description

@octopus-travels

When you press confirm button on the new-event dialog box without entering any data, it gives the following error;

Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.

Not sure if the onChange dependency is required for useCallback hooks on the following files;

/src/lib/components/inputs/Input.tsx
/src/lib/components/inputs/DatePicker.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions