six-widget-support
Advanced tools
Comparing version 0.2.18 to 0.2.19
@@ -77,3 +77,5 @@ "use strict"; | ||
var o = {}; | ||
o[e] = n || t, r.setState(o); | ||
o[e] = n || t, r.setState({ | ||
data: o | ||
}); | ||
}); | ||
@@ -98,3 +100,5 @@ r._unsubscribeFns.push(t); | ||
value: function(e) { | ||
this.unsubscribe(), this.replaceState({}), this.subscribe(e); | ||
this.unsubscribe(), this.setState({ | ||
data: {} | ||
}), this.subscribe(e); | ||
} | ||
@@ -109,4 +113,4 @@ }, { | ||
value: function() { | ||
var e = this.props, n = (e.subscriptionFn, r(e, [ "subscriptionFn" ])); | ||
return l["default"].createElement(t, i({}, n, this.state)); | ||
var e = this.props, n = (e.subscriptionFn, r(e, [ "subscriptionFn" ])), o = this.state ? this.state.data : {}; | ||
return l["default"].createElement(t, i({}, n, o)); | ||
} | ||
@@ -113,0 +117,0 @@ } ]), c; |
{ | ||
"name": "six-widget-support", | ||
"version": "0.2.18", | ||
"version": "0.2.19", | ||
"description": "Common functionality for SIX Widgets", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26103
718
0