Skip to content

Commit 25af8db

Browse files
authored
Add note about intersection observer polyfill
1 parent fbdd6d6 commit 25af8db

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ this hook.
7878
Please note that this hook declares `react` and as _peer dependency_. Therefore, you must have
7979
`react` installed to use this package.
8080

81-
Please [open an issue](https://github.com/zeusdeux/use-is-in-viewport/issues/new) if this default
82-
causes a problem in your application.
81+
**Note**: This hook relies on [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) and hence if you want to use it in a browser that doesn't
82+
support it, the onus of shipping the polyfill is on the developer.
83+
84+
Please [open an issue](https://github.com/zeusdeux/use-is-in-viewport/issues/new) if these defaults
85+
cause a problem in your application.
8386

8487
## API
8588

0 commit comments

Comments
 (0)