querysub 0.703.0 → 0.704.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.
- package/package.json +1 -1
- package/src/4-dom/qreact.tsx +3 -2
package/package.json
CHANGED
package/src/4-dom/qreact.tsx
CHANGED
|
@@ -856,7 +856,8 @@ class QRenderClass {
|
|
|
856
856
|
for (let [key, value] of Object.entries(vNode.props)) {
|
|
857
857
|
rawProps[key] = value;
|
|
858
858
|
}
|
|
859
|
-
|
|
859
|
+
let childStatics = vNode.type as QComponentStatic;
|
|
860
|
+
if (childStatics.deepProps) {
|
|
860
861
|
// NOTE: By removing atomic we can leverage the proxy automatically decomposing
|
|
861
862
|
// the props to each individual primitive value.
|
|
862
863
|
doProxyOptions({ atomicWrites: false }, () => {
|
|
@@ -864,7 +865,7 @@ class QRenderClass {
|
|
|
864
865
|
props = syncedData.props;
|
|
865
866
|
});
|
|
866
867
|
} else {
|
|
867
|
-
let atomicProps =
|
|
868
|
+
let atomicProps = childStatics.atomicSetProps || childStatics.jsonComparePropUpdates;
|
|
868
869
|
if (atomicProps) {
|
|
869
870
|
syncedData.props = vNode.props;
|
|
870
871
|
}
|