ctrlplusb / react-tree-walker

Walk a React (or Preact) element tree, executing a "visitor" function against each element.
MIT License
345 stars 34 forks source link

React.forwardRef is not supported #38

Closed bartlangelaan closed 6 years ago

bartlangelaan commented 6 years ago

I love that you made the new 16.3 context features work with this module.

The new React.forwardRef function however doesn't seem to work yet. I have made a code sample here: https://codesandbox.io/s/n4r8zwxz0l.

When the SubComponent in the example is directly rendered it works, but when wrapped with the React.forwardRef function it doesn't.

ctrlplusb commented 6 years ago

https://github.com/ctrlplusb/react-tree-walker/releases/tag/v4.3.0

🎉

Thanks dude!