Skip to content

chore: release v6.1.11#190

Merged
childrentime merged 2 commits intomainfrom
fix/usePageLeave
Jan 21, 2026
Merged

chore: release v6.1.11#190
childrentime merged 2 commits intomainfrom
fix/usePageLeave

Conversation

@childrentime
Copy link
Owner

@childrentime childrentime commented Jan 20, 2026

Note

Focuses on stabilizing DOM target handling and fixing re-render loops across hooks, with a minor internal utility addition and docs updates.

  • feat(core): add internal useStableTarget to produce stable keys/refs for BasicTarget inputs used in effects
  • fix(core): refactor useEventListener, useIntersectionObserver, useMutationObserver, useResizeObserver, and useSticky to use useStableTarget, updating deps to targetKey/elementKey so listeners/observers re-bind when targets change without infinite loops
  • fix(core): usePageLeave now binds to defaultWindow/defaultDocument instead of function targets to avoid unstable deps
  • chore: bump @reactuses/core to 6.1.11; update changelogs and website content (companies list, generated timestamp)

Written by Cursor Bugbot for commit 4b4e531. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

- fix(usePageLeave): resolve infinite re-render issue due to unstable handler references
- fix(useEventListener): enhance stability to prevent unnecessary re-bindings while supporting ref-based targets
- fix(useSticky): address infinite re-render issue with unstable function references as target or scroll element
- fix(useMutationObserver): add missing target dependency for correct re-observation
- fix(useResizeObserver): fix infinite re-render issue with unstable function references as target
- fix(useIntersectionObserver): add missing target dependency for correct re-observation
- feat(useStableTarget): introduce new utility hook for creating stable identifiers for BasicTarget parameters to prevent infinite re-renders
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@childrentime childrentime changed the title chore: release v6.1.10 chore: release v6.1.11 Jan 20, 2026
Copy link
Owner Author

@childrentime childrentime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@childrentime childrentime merged commit a037234 into main Jan 21, 2026
5 checks passed
@childrentime childrentime deleted the fix/usePageLeave branch January 21, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant