Skip to content

fix(masonry/virtual_scroll): Fix unintended regression from #1796 - #1841

Open
zheylmun wants to merge 1 commit into
linebender:mainfrom
VoidstarSolutions:bugfix_stash_regression
Open

fix(masonry/virtual_scroll): Fix unintended regression from #1796#1841
zheylmun wants to merge 1 commit into
linebender:mainfrom
VoidstarSolutions:bugfix_stash_regression

Conversation

@zheylmun

Copy link
Copy Markdown

Laying out stashed children is an error.
Re-add the guard for stashed children in virtual_scroll::layout to prevent panic.

…r#1796

Laying out stashed children is an error. Re-add the guard for virtual_scroll to prevent panic.
@PoignardAzur

PoignardAzur commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

At a glance, I'm a bit confused why stashing the children is necessary at all. "A child scrolled out of view" is explicitly what stashing is not for.

(This kind of complication is why I'm considering removing VirtualScroll.)

@zheylmun

zheylmun commented Aug 16, 2026

Copy link
Copy Markdown
Author

Trying to lay out the children that aren't mounted causes a panic at the moment. I agree this approach a clunky fix, but it's restoring the behavior that was removed at the beginning of July. I'm not familiar enough with the guts to really weigh in on the "right" fix. I simply tracked down the regression. Happy enough to keep this on a fork if you are considering a more permanent solution.

@PoignardAzur

Copy link
Copy Markdown
Collaborator

Fair enough. Will review this in a few days.

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