diff --git a/src/solid/Virtualizer.tsx b/src/solid/Virtualizer.tsx index 3d10ca62..4ea391d6 100644 --- a/src/solid/Virtualizer.tsx +++ b/src/solid/Virtualizer.tsx @@ -257,9 +257,9 @@ export const Virtualizer = (props: VirtualizerProps): JSX.Element => { createComputed( on( () => props.data.length, - (len, prevLen) => { - if (exists(prevLen) && len !== prevLen) { - store._update(ACTION_ITEMS_LENGTH_CHANGE, [len, props.shift]); + (count) => { + if (count !== store._getItemsLength()) { + store._update(ACTION_ITEMS_LENGTH_CHANGE, [count, props.shift]); } } )