Skip to content

Warning: findDOMNode is deprecated in StrictMode #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zifik opened this issue Apr 5, 2022 · 2 comments
Closed

Warning: findDOMNode is deprecated in StrictMode #269

zifik opened this issue Apr 5, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@zifik
Copy link

zifik commented Apr 5, 2022

I am getting this error with CModal v4.1.2.

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference.
<CModal
  size="sm"
  alignment="center"
  backdrop="static"
  visible={loadingState.isBusy}
>
  <CModalBody className="text-center">
    <CSpinner component="span" />
    <h3>{loadingState.message}</h3>
  </CModalBody>
</CModal>

Originally posted by @zifik in #127 (comment)

@zifik zifik changed the title I am getting this error with CModal v4.1.2. Warning: findDOMNode is deprecated in StrictMode Apr 5, 2022
@mrholek
Copy link
Member

mrholek commented Apr 6, 2022

@zifik I will fix it next release.

@mrholek mrholek added the bug Something isn't working label Apr 6, 2022
@mrholek
Copy link
Member

mrholek commented May 11, 2022

Fixed in v4.2.0

@mrholek mrholek closed this as completed May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants