@viewfly/core 2.0.0-alpha.3 → 2.0.0-alpha.4
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.
- package/bundles/index.esm.js +4 -3
- package/bundles/index.js +4 -3
- package/package.json +2 -2
package/bundles/index.esm.js
CHANGED
|
@@ -1936,16 +1936,17 @@ function updateComponent(params, offset, needMove) {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
else {
|
|
1938
1938
|
newAtom.child = oldAtom.child;
|
|
1939
|
-
reuseComponentView(nativeRenderer, newAtom.child, context, needMove,
|
|
1939
|
+
reuseComponentView(nativeRenderer, newAtom.child, context, needMove, !canUpdate);
|
|
1940
1940
|
}
|
|
1941
1941
|
component.rendered();
|
|
1942
1942
|
}
|
|
1943
1943
|
function reuseComponentView(nativeRenderer, child, context, moveView, skipSubComponentDiff) {
|
|
1944
1944
|
const updateContext = (atom) => {
|
|
1945
|
-
|
|
1945
|
+
const jsxNode = atom.jsxNode;
|
|
1946
|
+
if (jsxNode instanceof Component) {
|
|
1946
1947
|
reuseComponentView(nativeRenderer, atom.child, context, moveView, skipSubComponentDiff);
|
|
1947
1948
|
if (!skipSubComponentDiff) {
|
|
1948
|
-
deepUpdateByComponentDirtyTree(nativeRenderer,
|
|
1949
|
+
deepUpdateByComponentDirtyTree(nativeRenderer, jsxNode, moveView);
|
|
1949
1950
|
}
|
|
1950
1951
|
}
|
|
1951
1952
|
else {
|
package/bundles/index.js
CHANGED
|
@@ -1938,16 +1938,17 @@ function updateComponent(params, offset, needMove) {
|
|
|
1938
1938
|
}
|
|
1939
1939
|
else {
|
|
1940
1940
|
newAtom.child = oldAtom.child;
|
|
1941
|
-
reuseComponentView(nativeRenderer, newAtom.child, context, needMove,
|
|
1941
|
+
reuseComponentView(nativeRenderer, newAtom.child, context, needMove, !canUpdate);
|
|
1942
1942
|
}
|
|
1943
1943
|
component.rendered();
|
|
1944
1944
|
}
|
|
1945
1945
|
function reuseComponentView(nativeRenderer, child, context, moveView, skipSubComponentDiff) {
|
|
1946
1946
|
const updateContext = (atom) => {
|
|
1947
|
-
|
|
1947
|
+
const jsxNode = atom.jsxNode;
|
|
1948
|
+
if (jsxNode instanceof Component) {
|
|
1948
1949
|
reuseComponentView(nativeRenderer, atom.child, context, moveView, skipSubComponentDiff);
|
|
1949
1950
|
if (!skipSubComponentDiff) {
|
|
1950
|
-
deepUpdateByComponentDirtyTree(nativeRenderer,
|
|
1951
|
+
deepUpdateByComponentDirtyTree(nativeRenderer, jsxNode, moveView);
|
|
1951
1952
|
}
|
|
1952
1953
|
}
|
|
1953
1954
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.4",
|
|
4
4
|
"description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "3cb6bb4b345ccda0679c35a39c8f17211b0c6826",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"reflect-metadata": "^0.2.2"
|
|
56
56
|
}
|