baruchvlz / resq

React Element Selector Query (RESQ) - Query React components and children by component name or HTML selector
MIT License
174 stars 27 forks source link

feat: add support for React 18 #86

Closed mkilp closed 1 year ago

mkilp commented 1 year ago

Hi!

There seems to be issues with React 18 and Web Components / Shadow Roots / Redux States. This makes it so that React components are prefixed with __reactContainer instead of __reactFiber. (Source: https://javascript.plainenglish.io/how-to-get-the-redux-state-in-a-react-18-production-build-via-the-browsers-console-a01814eebfa8)

This fix will alleviate this issue.

Hopefully we can get this merged.

Thanks!

baruchvlz commented 1 year ago

Hey @mkilp, sorry it has taken so long for me to see this but I appreciate you taking the time to do it. I'll be making a release with these changes soon™️.

thediveo commented 1 year ago

Any news about the E.T.A. for the new release? I'm blocked with migrating to CRA5/React18 using Cypress and especially cypress-react-selector for testing.

baruchvlz commented 1 year ago

@mkilp @thediveo Version 1.11.0 should be available with the changes. Thanks again for taking care of this and for your patience.

baruchvlz commented 1 year ago

Closes #87