Skip to content

fix: remove deprecated findDOMNode#92

Open
huwshimi wants to merge 1 commit into
iamthesiz:masterfrom
huwshimi:remove-finddomnode
Open

fix: remove deprecated findDOMNode#92
huwshimi wants to merge 1 commit into
iamthesiz:masterfrom
huwshimi:remove-finddomnode

Conversation

@huwshimi

@huwshimi huwshimi commented Aug 14, 2024

Copy link
Copy Markdown
Contributor

Changes

Remove the deprecated findDOMNode method that will be removed in React 19. As far as I can see findDOMNode is designed to take class components and find the related element, but bindTo takes a reference to the element so I updated this to use the reference directly. Not sure if there are any cases where this would be insufficient.

I also upgraded to React 18 for the examples.

Fixes: #91.

@andymerskin

Copy link
Copy Markdown

Now that React 19 has been out for a while, we decided to upgrade, and unfortunately this is now breaking our pages. Could we get this merged soon?

In the meantime, we may patch react-useportal in our project with the same fix, but it would be great for this to benefit everyone using this awesome library! 🙌

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

using bindTo gives findDOMNode error

2 participants