@b9g/crank 0.5.0 → 0.5.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/crank.cjs +4 -1
- package/crank.cjs.map +1 -1
- package/crank.js +4 -1
- package/crank.js.map +1 -1
- package/package.json +1 -1
- package/umd.js +4 -1
- package/umd.js.map +1 -1
package/crank.js
CHANGED
|
@@ -656,7 +656,10 @@ function updateHost(renderer, root, ctx, scope, ret, oldProps, hydrationData) {
|
|
|
656
656
|
}
|
|
657
657
|
function commitHost(renderer, scope, ret, childValues, oldProps, hydrationValue) {
|
|
658
658
|
const tag = ret.el.tag;
|
|
659
|
-
let value =
|
|
659
|
+
let value = ret.value;
|
|
660
|
+
if (hydrationValue != null) {
|
|
661
|
+
value = ret.value = hydrationValue;
|
|
662
|
+
}
|
|
660
663
|
let props = ret.el.props;
|
|
661
664
|
let copied;
|
|
662
665
|
if (tag !== Portal) {
|