Minor Changes
-
#1334
91c2931- AddsetOptionstoVirtualizerControllerandWindowVirtualizerControllerso virtualizer options can be updated after construction.Previously the controller only accepted options once, in its constructor, so options derived from reactive Lit properties (
count,estimateSize,horizontal, …) could never be re-applied.getVirtualizer().setOptions(...)is not a substitute: it replaces options wholesale and drops the controller'sonChangewrapper, which is what asks the host to re-render.setOptionstakes a partial set of options, merges them over the options the controller already holds (skippingundefined, so an omitted value does not wipe a stored one), re-applies the hostrequestUpdatewrapper aroundonChange, and flushes the change:willUpdate(changed: PropertyValues<this>) { if (changed.has('count')) { this.virtualizerController.setOptions({ count: this.count }) } }
Patch Changes
- Updated dependencies [
2343004]:- @tanstack/virtual-core@3.19.8