ZeeCoder / use-resize-observer

A React hook that allows you to use a ResizeObserver to measure an element's size.
MIT License
651 stars 42 forks source link

Support in Safari #30

Closed Simply1993 closed 4 years ago

Simply1993 commented 4 years ago

Need add polyfill for browsers without ResizeObserver (e.x. Safari).

ZeeCoder commented 4 years ago

Please refer to this section in the documentation: https://github.com/ZeeCoder/use-resize-observer#transpilation--polyfilling

Simply1993 commented 4 years ago

Did you check it last safari? I've some problem if I use this polyfill

ZeeCoder commented 4 years ago

No I didn't, your phrasing made it sound like you didn't try the polyfilled version at all.

Which version of Safari did you try to use it in? What are the exact problems you are having?

Could you try to polyfill yourself to see if the issue is with the specific polyfill shipped here or not?

Simply1993 commented 4 years ago

I tried to use polyfill.

Sry, but it's really my fault. My safari was broken :D

Thanks for fast reaction for issue 👍

ZeeCoder commented 4 years ago

no worries, glad that it works 👌