You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,9 +171,11 @@ Single React component or element that is used as the target (observable).
171
171
172
172
### Notes
173
173
174
-
* According to the spec, a first callback invocation occurs when the target is first attached to the observer.
174
+
* According to the spec, an initial event is being fired when starting to observe a non-intersecting element as well.
175
+
*_Edge's implementation seems to [miss the initial event](https://github.com/w3c/IntersectionObserver/issues/222#issuecomment-311539591), although Edge 16 behavior aligns with the spec._
175
176
* Changes happen asynchronously, similar to the way `requestIdleCallback` works.
176
177
* Although you can consider callbacks immediate - always below 1 second - you can also get an immediate response on an element's visibility with `observer.takeRecords()`.
178
+
* Support for _Map_, _Symbol_ and other native features and primitives is required. Consider using a polyfill for IE < 11 and older browsers. If you're using babel include `"babel-polyfill"` somewhere to your codebase.
0 commit comments