treble-hook
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -107,5 +107,5 @@ "use strict"; | ||
}, []); | ||
return [state || defaultState, publish(topic), unsubscribe(topic, subscriptionId)]; | ||
return [typeof state !== 'undefined' ? state : defaultState, publish(topic), unsubscribe(topic, subscriptionId)]; | ||
} | ||
exports.usePubSub = usePubSub; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "treble-hook", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Get hooked on simple subscribe-and-publish in ReactJS.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
14370