Skip to content

Datepicker component gives "Cannot update a component while rendering a different component (Datepicker)" warning #1359

@Ingirorhaun

Description

@Ingirorhaun

Expectations

When following the example in the Datepicker documentation, the code should work without errors/warnings.

Reality

The first time the state is updated, this warning appears.
image

Steps to Reproduce

1.Use the code in the documented example inside of another component.
2.Select any date

Codesandbox: https://codesandbox.io/s/agitated-silence-vb9euf

Fine Print

  • Component: Datepicker
  • Version: 8.52.0
  • Browsers: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions