Releases: garthenweb/react-viewport-utils
Releases · garthenweb/react-viewport-utils
v0.3.0
- [b85ce87] new
ObserveViewportcomponent which allows updates to the viewport without the overhead of rendering via a HOC which comes in handy in performance critical situations wherescrollordimensionsproperties are not directly used in the render function - [a955605] throttle scroll events to reduce the stress on the main thread
- [be59e9b] cheeper shallow update checks
v0.2.0
ObserveBoundingClientRect
- deprecate
setInitialsprops - add
onInitandonUpdateprops - export
IRectinterface (typescript)
ViewportProvider
- renamed connector from
ConnectViewportScrolltoConnectViewport(old export is still available) ConnectViewportalso addsdimensionsproperty to access the width and heigth of the client- fix name of higher order component
- export
IScrollandIDimensionsinterface (typescript)
v0.1.0
- remove cache folders from bundle
- reduce react peer dependency to v16.3
- add link to npm on github page
- export typescript types
- fix issue where context was not propagated correctly when the deprecated context api was used on the application