maslianok / react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React
http://maslianok.github.io/react-resize-detector/
MIT License
1.25k stars 91 forks source link

Set observable element to null while unmounting component #209

Closed pkawula closed 2 years ago

pkawula commented 2 years ago

This will resolve bug described in #208

The problem came out because React in version 18 is unmounting and remounting elements

ddkang commented 2 years ago

Any chance this could be merged? It would really help with upgrading to react 18!

jthoward64 commented 2 years ago

Is there any work that needs doing before this can be merged? This one line is holding recharts (and possibly others) back from React 18.

joaogardenberg commented 2 years ago

@maslianok I hope you're okay brother Ukraine flag Hang on tight

maslianok commented 2 years ago

Thank you everyone 👍 I'm safe. Will try to manage all issues and PR in the nearest future...

maslianok commented 2 years ago

published in v7.0.2