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

Avoid render again on google maps fullscreen #77

Closed velthune closed 4 years ago

velthune commented 5 years ago

As in title, ResizeDetector is triggered on Google maps component fullscreen which causes a re-render.

How can avoid this behaviour?

maslianok commented 4 years ago

Well, this should be an internal solution.

IMO, it's expected that fullscreen mode triggers a re-render. If you want to avoid this - please set some flag before you go to fullscreen mode and disable/remove react-resize-observer based on that flag

maslianok commented 4 years ago

Also, it's possible that you're referring to the bug described in #78. In such case please refer to the discussion there