X Tutup
The Wayback Machine - https://web.archive.org/web/20201127010826/https://github.com/ionic-team/ionic-framework/pull/21932
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

fix(react): eliminate use of deprecated `findDOMNode` #21932

Merged

Conversation

@GabrielMajeri
Copy link

@GabrielMajeri GabrielMajeri commented Aug 18, 2020

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

  • Bugfix

What is the current behavior?

Using Ionic with the latest React strict mode generates lots of warnings.

Issue Number: #20972

What is the new behavior?

We no longer use the deprecated ReactDom.findDOMNode function, instead we use a ref.

Does this introduce a breaking change?

  • No

Fixes #20972

@GabrielMajeri GabrielMajeri changed the title Eliminate use of deprecated `findDOMNode` fix(react): eliminate use of deprecated `findDOMNode` Aug 20, 2020
@liamdebeasi liamdebeasi requested a review from elylucas Aug 21, 2020
@gustavopch
Copy link

@gustavopch gustavopch commented Aug 30, 2020

This PR is pretty small. Hope it can get merged soon. 🚀

@elylucas elylucas changed the base branch from master to react-fix-strict-dom-node-warnings Nov 25, 2020
@elylucas elylucas merged commit 4aa75b3 into ionic-team:react-fix-strict-dom-node-warnings Nov 25, 2020
1 check passed
1 check passed
build Workflow: build
Details
@GabrielMajeri GabrielMajeri deleted the GabrielMajeri:fix-strict-mode-warnings branch Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

4 participants
You can’t perform that action at this time.
X Tutup