Skip to content

Tags: Tiamat-Tech/react-intersection-observer

Tags

v8.32.5

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: undo the clear observers (thebuilder#523)

v8.32.4

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: correct import path for observermap (thebuilder#522)

v8.32.3

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: clear observers after each test run (thebuilder#519)

v8.32.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: make ratio return largest threshold smaller than trigger (thebui…

…lder#510)

v8.32.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: make children optional (thebuilder#505)

v8.32.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: export the observe method (thebuilder#473)

v8.31.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: use WeakMap to avoid memory leak (thebuilder#463)

IntersectionObserver roots were tracked in a Map. This ensures it's possible to reuse the Intersection Observer instance if they share the same options. Changed to use a WeakMap, so unused root elements can be garbage collected.

Closes thebuilder#462

v8.31.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: add support for testing threshold values (thebuilder#417)

This expands the `test-utils` to support defining a `threshold` value when checking for `isIntersecting`. Before you could only give a `boolean`.

This should allow you test more complex `threshold` based scenarios.

v8.30.3

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: ensure threshold fallbacks to options value if undefined (thebui…

…lder#416)

v8.30.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: ensure thresholds is defined (thebuilder#415)

Sometimes the thresholds value on the IntersectionObserver instance could be undefined. Add a fallback to a default value in the cases where the browser doesn't set it.

This fixes thebuilder#414