Skip to content

Maximum update depth exceeded #453

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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