@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.cjs
CHANGED
|
@@ -659,7 +659,10 @@ function updateHost(renderer, root, ctx, scope, ret, oldProps, hydrationData) {
|
|
|
659
659
|
}
|
|
660
660
|
function commitHost(renderer, scope, ret, childValues, oldProps, hydrationValue) {
|
|
661
661
|
const tag = ret.el.tag;
|
|
662
|
-
let value =
|
|
662
|
+
let value = ret.value;
|
|
663
|
+
if (hydrationValue != null) {
|
|
664
|
+
value = ret.value = hydrationValue;
|
|
665
|
+
}
|
|
663
666
|
let props = ret.el.props;
|
|
664
667
|
let copied;
|
|
665
668
|
if (tag !== Portal) {
|