dom-expressions 0.34.7 → 0.34.8
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 +2 -2
- package/src/client.js +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dom-expressions",
|
|
3
3
|
"description": "A Fine-Grained Runtime for Performant DOM Rendering",
|
|
4
|
-
"version": "0.34.
|
|
4
|
+
"version": "0.34.8",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"babel-plugin-jsx-dom-expressions": "^0.34.7",
|
|
27
27
|
"csstype": "^3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "95d455fc37c0ebab653f5d80edf50492900f5eae"
|
|
30
30
|
}
|
package/src/client.js
CHANGED
|
@@ -369,10 +369,10 @@ function eventHandler(e) {
|
|
|
369
369
|
|
|
370
370
|
function spreadExpression(node, props, prevProps = {}, isSVG, skipChildren) {
|
|
371
371
|
props || (props = {});
|
|
372
|
-
if (!skipChildren
|
|
372
|
+
if (!skipChildren) {
|
|
373
373
|
effect(() => (prevProps.children = insertExpression(node, props.children, prevProps.children)));
|
|
374
374
|
}
|
|
375
|
-
props.ref && props.ref(node);
|
|
375
|
+
effect(() => props.ref && props.ref(node));
|
|
376
376
|
effect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
377
377
|
return prevProps;
|
|
378
378
|
}
|