Skip to content
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

Modal with Legacy context api and findDOMNode warnings on console when open #2065

Closed
hermeshcg opened this issue Jan 4, 2021 · 1 comment

Comments

@hermeshcg
Copy link

  • components: Modal
  • reactstrap version "^8.7.1"
  • import method umd/csj/es
  • react version ^17.0.1
  • bootstrap version ^4.5.3

What is happening?

I'm using modal by reactstrap in a project, when this modal is open it appears a few warnings in the console

What should be happening?

Not showing warnings i guess

Steps to reproduce issue

  1. Open console
  2. Open an reactstrap modal

Error message in console

Error 1

index.js:1 Warning: Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: Transition

Error 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.
@kyletsang
Copy link
Member

Dupe of #1833

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

No branches or pull requests

2 participants