@lvce-editor/quick-pick-worker 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3862,6 +3862,9 @@ const getQuickPickVirtualDom = (visibleItems, scrollBarHeight, scrollBarTop) =>
|
|
|
3862
3862
|
};
|
|
3863
3863
|
|
|
3864
3864
|
const renderItemsDom = state => {
|
|
3865
|
+
if (state.initial) {
|
|
3866
|
+
return [];
|
|
3867
|
+
}
|
|
3865
3868
|
const viewModel = createQuickPickViewModel(state, state);
|
|
3866
3869
|
const {
|
|
3867
3870
|
scrollBarHeight,
|
|
@@ -3878,9 +3881,6 @@ const renderItems = (_oldState, newState) => {
|
|
|
3878
3881
|
const renderIncremental = (oldState, newState) => {
|
|
3879
3882
|
const oldDom = renderItemsDom(oldState);
|
|
3880
3883
|
const newDom = renderItemsDom(newState);
|
|
3881
|
-
if (oldState.initial) {
|
|
3882
|
-
return [SetDom2, newDom];
|
|
3883
|
-
}
|
|
3884
3884
|
const patches = diffTree(oldDom, newDom);
|
|
3885
3885
|
return [SetPatches, newState.uid, patches];
|
|
3886
3886
|
};
|