@lvce-editor/source-control-worker 3.16.0 → 3.17.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.
|
@@ -4040,6 +4040,9 @@ const renderItems = (oldState, newState) => {
|
|
|
4040
4040
|
};
|
|
4041
4041
|
|
|
4042
4042
|
const renderIncremental = (oldState, newState) => {
|
|
4043
|
+
if (oldState.loading !== newState.loading || oldState.workspacePath !== newState.workspacePath) {
|
|
4044
|
+
return renderItems(oldState, newState);
|
|
4045
|
+
}
|
|
4043
4046
|
const oldDom = renderItems(oldState, oldState)[2];
|
|
4044
4047
|
const newDom = renderItems(newState, newState)[2];
|
|
4045
4048
|
const patches = diffTree(oldDom, newDom);
|