Skip to content

Conversation

@dhilt
Copy link
Owner

@dhilt dhilt commented Nov 9, 2025

For issue #66.


Q1. 1.2 test case of the original Recreation spec ('should not reset Datasource on destroy via ngIf') doesn't make sense without Angular environment. It raises a principal question at the core level. What if the viewport element gets destroyed? Perhaps we'd want to have a MutationObserver subscription which forces workflow.dispose call when the viewport is removed. We also might want to have it implemented at the DOM Routines class with possibility of overriding: Routines.onViewportRemoved. This is important for the consumers flow. For example, ngx-ui-scroll handles this situation via Angular standard mechanism, so Routines.onViewportRemoved should just do nothing there. But having this functionality inside core, we could reconsider this test case.

Q2. In ngx-ui-scroll recreation tests, after each ngIf-recreation we have the same picture as we have after the initial run, because Angular cleans up the DOM. In current vscroll recreation spec implementation we make this cleanup at the spec level. Maybe we want to do it at the core level: clean up the scroller's DOM when calling Workflow.dispose.

@dhilt dhilt marked this pull request as ready for review November 28, 2025 14:26
@dhilt dhilt merged commit 894dbae into main Nov 28, 2025
1 check passed
@dhilt dhilt mentioned this pull request Nov 29, 2025
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.

2 participants