@viewfly/core 0.1.0 → 0.1.1
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 -0
- package/bundles/index.js +4 -0
- package/package.json +2 -2
package/bundles/index.esm.js
CHANGED
|
@@ -738,6 +738,9 @@ class Component extends ReflectiveInjector {
|
|
|
738
738
|
if (add.length || remove.length || replace.length) {
|
|
739
739
|
this.invokePropsChangedHooks(newProps);
|
|
740
740
|
}
|
|
741
|
+
else if (!this.dirty) {
|
|
742
|
+
return this.template;
|
|
743
|
+
}
|
|
741
744
|
const newRefs = toRefs(newProps.ref);
|
|
742
745
|
for (const oldRef of this.refs) {
|
|
743
746
|
if (!newRefs.includes(oldRef)) {
|
|
@@ -1337,6 +1340,7 @@ function diff(nativeRenderer, parentComponent, newAtom, oldAtom, context, expect
|
|
|
1337
1340
|
newAtom.jsxNode = instance;
|
|
1338
1341
|
if (newTemplate === oldTemplate) {
|
|
1339
1342
|
reuseComponentView(nativeRenderer, newAtom, reusedAtom, context, expectIndex !== diffIndex - offset);
|
|
1343
|
+
updateView(nativeRenderer, instance);
|
|
1340
1344
|
return;
|
|
1341
1345
|
}
|
|
1342
1346
|
if (newTemplate) {
|
package/bundles/index.js
CHANGED
|
@@ -740,6 +740,9 @@ class Component extends ReflectiveInjector {
|
|
|
740
740
|
if (add.length || remove.length || replace.length) {
|
|
741
741
|
this.invokePropsChangedHooks(newProps);
|
|
742
742
|
}
|
|
743
|
+
else if (!this.dirty) {
|
|
744
|
+
return this.template;
|
|
745
|
+
}
|
|
743
746
|
const newRefs = toRefs(newProps.ref);
|
|
744
747
|
for (const oldRef of this.refs) {
|
|
745
748
|
if (!newRefs.includes(oldRef)) {
|
|
@@ -1339,6 +1342,7 @@ function diff(nativeRenderer, parentComponent, newAtom, oldAtom, context, expect
|
|
|
1339
1342
|
newAtom.jsxNode = instance;
|
|
1340
1343
|
if (newTemplate === oldTemplate) {
|
|
1341
1344
|
reuseComponentView(nativeRenderer, newAtom, reusedAtom, context, expectIndex !== diffIndex - offset);
|
|
1345
|
+
updateView(nativeRenderer, instance);
|
|
1342
1346
|
return;
|
|
1343
1347
|
}
|
|
1344
1348
|
if (newTemplate) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
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",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"bugs": {
|
|
47
47
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d6c54831a96266979af7b95c7152fe7ef2b62a4f"
|
|
50
50
|
}
|