Skip to content

Fix Routines and scroll listener lifecycle on adapter.reset() - #81

Merged
dhilt merged 3 commits into
mainfrom
issue-78--adapter.reset()-drops-custom-Routines-and-keeps-the-scroll-listener-on-the-old-viewport
Oct 11, 2026
Merged

dhilt merged 3 commits into
mainfrom
issue-78--adapter.reset()-drops-custom-Routines-and-keeps-the-scroll-listener-on-the-old-viewport

Conversation

@dhilt

@dhilt dhilt commented Oct 8, 2026

Copy link
Copy Markdown
Owner
  • Preserve custom Routines across resets, creating fresh instances with updated settings.
  • Rebind scroll listeners on reset and release them on disposal.
  • Guard against synchronous scroll notifications during listener registration.
  • Add regression tests for repeated/interrupted resets, viewport switching and disposal.

dhilt added 2 commits October 8, 2026 18:48
Guard against synchronous scroll notifications during registration.
Verify repeated and interrupted resets, viewport switching, disposal,
and synchronous scroll notifications during registration.
Verify listener rebinding and disposal after reset interrupts a fetch.
Simplify Routines coverage and remove redundant reset steps.
@dhilt
dhilt merged commit ed103f9 into main Oct 11, 2026
1 check passed
@dhilt
dhilt deleted the issue-78--adapter.reset()-drops-custom-Routines-and-keeps-the-scroll-listener-on-the-old-viewport branch October 11, 2026 14:49
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.

adapter.reset() drops custom Routines and keeps the scroll listener on the old viewport

1 participant