pmndrs / react-use-measure

🙌 Utility to measure view bounds
MIT License
843 stars 30 forks source link

Does not work on Safari: Polyfill not injecting? #10

Open andyfangaf opened 4 years ago

andyfangaf commented 4 years ago

At least for Safari. Usage is like this:

import ResizeObserver from 'resize-observer-polyfill'
...
  const [ref, bounds] = useMeasure({
    polyfill: ResizeObserver,
  })
ositowang commented 1 year ago

I have the same issue with safari polyfill issue.. Have you found a solution for that