Files
craft-libs/crates/ui-patterns/tests
dotCooCoo 16f8962801 ui-patterns: a preset browser with host closures replays under the host's version
A browser given a tip painter, row menu rows, drop rules or drag payloads
keyed its presets view as changing in every pass, because no key can follow
what a closure reads. The Swatches panel passes all of these, so its list
ran in every frame.

PresetBrowser::host_version and SwatchesPanel::host_version take a version
for everything those closures read. While it holds and nothing reaches the
presets, the view replays its last run; a new version runs it once. Without
a version the view still runs in every pass.
2026-11-29 11:23:36 -08:00
..