@viewfly/core 1.2.3 → 1.2.5

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.
@@ -1473,16 +1473,17 @@ function updateComponent(params, offset, needMove) {
1473
1473
  }
1474
1474
  else {
1475
1475
  newAtom.child = oldAtom.child;
1476
- reuseComponentView(nativeRenderer, newAtom.child, context, needMove, true);
1476
+ reuseComponentView(nativeRenderer, newAtom.child, context, needMove, !canUpdate);
1477
1477
  }
1478
1478
  component.rendered();
1479
1479
  }
1480
1480
  function reuseComponentView(nativeRenderer, child, context, moveView, skipSubComponentDiff) {
1481
1481
  const updateContext = (atom) => {
1482
- if (atom.jsxNode instanceof Component) {
1482
+ const jsxNode = atom.jsxNode;
1483
+ if (jsxNode instanceof Component) {
1483
1484
  reuseComponentView(nativeRenderer, atom.child, context, moveView, skipSubComponentDiff);
1484
1485
  if (!skipSubComponentDiff) {
1485
- deepUpdateByComponentDirtyTree(nativeRenderer, atom.jsxNode, moveView);
1486
+ deepUpdateByComponentDirtyTree(nativeRenderer, jsxNode, moveView);
1486
1487
  }
1487
1488
  }
1488
1489
  else {
package/bundles/index.js CHANGED
@@ -1475,16 +1475,17 @@ function updateComponent(params, offset, needMove) {
1475
1475
  }
1476
1476
  else {
1477
1477
  newAtom.child = oldAtom.child;
1478
- reuseComponentView(nativeRenderer, newAtom.child, context, needMove, true);
1478
+ reuseComponentView(nativeRenderer, newAtom.child, context, needMove, !canUpdate);
1479
1479
  }
1480
1480
  component.rendered();
1481
1481
  }
1482
1482
  function reuseComponentView(nativeRenderer, child, context, moveView, skipSubComponentDiff) {
1483
1483
  const updateContext = (atom) => {
1484
- if (atom.jsxNode instanceof Component) {
1484
+ const jsxNode = atom.jsxNode;
1485
+ if (jsxNode instanceof Component) {
1485
1486
  reuseComponentView(nativeRenderer, atom.child, context, moveView, skipSubComponentDiff);
1486
1487
  if (!skipSubComponentDiff) {
1487
- deepUpdateByComponentDirtyTree(nativeRenderer, atom.jsxNode, moveView);
1488
+ deepUpdateByComponentDirtyTree(nativeRenderer, jsxNode, moveView);
1488
1489
  }
1489
1490
  }
1490
1491
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewfly/core",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
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": "05b1bb582a192cf5dc4fded87091788f1e3f45d8",
53
+ "gitHead": "77d70d453d3b314a8b1055a74b39ecac51acc992",
54
54
  "dependencies": {
55
55
  "reflect-metadata": "^0.2.2"
56
56
  }