@cerebral/preact
Advanced tools
Comparing version 4.1.2-1562757238762 to 4.2.0-1570295904659
@@ -9,4 +9,2 @@ 'use strict'; | ||
var _preact = require('preact'); | ||
var _cerebral = require('cerebral'); | ||
@@ -16,2 +14,4 @@ | ||
var _preact = require('preact'); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -53,3 +53,3 @@ | ||
value: function render(props) { | ||
return props.children[0]; | ||
return props.children[0] || props.children; | ||
} | ||
@@ -56,0 +56,0 @@ }]); |
@@ -45,2 +45,3 @@ 'use strict'; | ||
} | ||
/* | ||
@@ -57,2 +58,3 @@ Register the component to the dependency store with its | ||
} | ||
/* | ||
@@ -79,2 +81,3 @@ We only allow forced render by change of props passed | ||
} | ||
/* | ||
@@ -91,2 +94,3 @@ We have to update any usage of "get" when the component updates | ||
} | ||
/* | ||
@@ -107,2 +111,3 @@ If received props differ, we need to update any | ||
} | ||
/* | ||
@@ -109,0 +114,0 @@ Unregister with existing state dependencies |
{ | ||
"name": "@cerebral/preact", | ||
"version": "4.1.2-1562757238762", | ||
"version": "4.2.0-1570295904659", | ||
"description": "Preact view for Cerebral", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"cerebral": "^5.1.2-1562757238762" | ||
"cerebral": "^5.2.0-1570295904659" | ||
}, | ||
@@ -20,0 +20,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19846