npm react-resize-detector 7.0.0
v7.0.0

latest releases: 11.0.1, 11.0.0-beta.0, 10.0.1...
2 years ago

v7.0.0 BREAKING CHANGE

resize-observer-polyfill is removed from the library:

  • all modern browsers support ResizeObserver API natively
  • resize-observer-polyfill repository is abandoned

It means that starting from v7 you won't be able to use the build with polyfill:

// WRONG: there is no such file starting from v7
import ResizeObserver from 'react-resize-detector/build/withPolyfill';

// CORRECT
import ResizeObserver from 'react-resize-detector';

Don't miss a new react-resize-detector release

NewReleases is sending notifications on new releases.