MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / insertItems

Method insertItems

src/utils/VirtualScroller.ts:782–793  ·  view source on GitHub ↗
(options: VirtualScrollerInsertOptions<T>)

Source from the content-addressed store, hash-verified

780 }
781
782 insertItems(options: VirtualScrollerInsertOptions<T>): boolean {
783 const nextEntries = this.buildEntriesAfterInsertion(options);
784 if (!nextEntries) {
785 return false;
786 }
787
788 const currentScrollTop = this.scrollContainer.scrollTop;
789 this.applyItemEntries(nextEntries);
790 this.scrollContainer.scrollTop = currentScrollTop;
791 this.forceVisibleRangeUpdate();
792 return true;
793 }
794
795 /**
796 * Re-render currently visible items by key without rebuilding the whole scroller.

Calls 3

applyItemEntriesMethod · 0.95

Tested by

no test coverage detected