@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b9g/crank",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Write JSX-driven components with functions, promises and generators.",
5
5
  "homepage": "https://crank.js.org",
6
6
  "bugs": {
package/umd.js CHANGED
@@ -661,7 +661,10 @@
661
661
  }
662
662
  function commitHost(renderer, scope, ret, childValues, oldProps, hydrationValue) {
663
663
  const tag = ret.el.tag;
664
- let value = hydrationValue || ret.value;
664
+ let value = ret.value;
665
+ if (hydrationValue != null) {
666
+ value = ret.value = hydrationValue;
667
+ }
665
668
  let props = ret.el.props;
666
669
  let copied;
667
670
  if (tag !== Portal) {