UNPKG

@asyarb/use-intersection-observer

Version:

An easy to use React hook wrapper around the IntersectionObserver API.

79 lines (37 loc) 2.79 kB
# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ### [2.0.2](https://github.com/asyarb/use-intersection-observer/compare/v2.0.1...v2.0.2) (2019-09-08) ### Bug Fixes * module key in package ([40ea8f9](https://github.com/asyarb/use-intersection-observer/commit/40ea8f9)) ### [2.0.1](https://github.com/asyarb/use-intersection-observer/compare/v2.0.0...v2.0.1) (2019-09-08) ### Bug Fixes * update npm ignore ([0e16e4d](https://github.com/asyarb/use-intersection-observer/commit/0e16e4d)) ## [2.0.0](https://github.com/asyarb/use-intersection-observer/compare/v1.3.1...v2.0.0) (2019-09-08) ### ⚠ BREAKING CHANGES * hook parameters must be passed via object, html elements must be provided via element key * update readme ([e42e611](https://github.com/asyarb/use-intersection-observer/commit/e42e611)) ### Bug Fixes * pre commit script ([d9609c6](https://github.com/asyarb/use-intersection-observer/commit/d9609c6)) ### Features * example ([b35bf2d](https://github.com/asyarb/use-intersection-observer/commit/b35bf2d)) * not real tests ([ec5650a](https://github.com/asyarb/use-intersection-observer/commit/ec5650a)) * typescript impl ([784c31d](https://github.com/asyarb/use-intersection-observer/commit/784c31d)) ### [1.3.1](https://github.com/asyarb/use-intersection-observer/compare/v1.3.0...v1.3.1) (2019-08-11) ## [1.3.0](https://github.com/asyarb/use-intersection-observer/compare/v1.2.1...v1.3.0) (2019-08-11) ### Features * default option object ([4c9e8bc](https://github.com/asyarb/use-intersection-observer/commit/4c9e8bc)) ### [1.2.1](https://github.com/asyarb/use-intersection-observer/compare/v1.2.0...v1.2.1) (2019-08-11) ### Bug Fixes * def file ([59e742f](https://github.com/asyarb/use-intersection-observer/commit/59e742f)) ## [1.2.0](https://github.com/asyarb/use-intersection-observer/compare/v1.1.1...v1.2.0) (2019-08-11) ### Features * typescript definition ([c9c2636](https://github.com/asyarb/use-intersection-observer/commit/c9c2636)) ### [1.1.1](https://github.com/asyarb/use-intersection-observer/compare/v1.1.0...v1.1.1) (2019-08-10) ### Bug Fixes * update internal deps ([be0f63f](https://github.com/asyarb/use-intersection-observer/commit/be0f63f)) ## 1.1.0 (2019-08-10) ### Features * final implementation details ([a30cf2c](https://github.com/asyarb/use-intersection-observer/commit/a30cf2c)) * init ([14ed8e3](https://github.com/asyarb/use-intersection-observer/commit/14ed8e3)) * jsdoc ([375b21f](https://github.com/asyarb/use-intersection-observer/commit/375b21f)) * working intersection observer ([f865588](https://github.com/asyarb/use-intersection-observer/commit/f865588))