zendeskgarden/react-components

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

Ingirorhaun opened this issue · 1 comments

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

Same here!

With versions:

  • @zendeskgarden/react-datepickers: 8.73.1
  • node: 18.18.1