Comparing version 0.4.10 to 0.4.11
# Change Log | ||
## 0.4.11 | ||
### Bug Fixes | ||
* [#195] Fixed undefined error with rehydrating with an empty state object | ||
### Features | ||
* [#196] Added `getStore` method to `FluxibleContext` class | ||
## 0.4.10 | ||
@@ -4,0 +14,0 @@ |
@@ -178,2 +178,3 @@ /** | ||
debug('rehydrate', obj); | ||
obj = obj || {}; | ||
var self = this; | ||
@@ -203,3 +204,3 @@ var Promise = Fluxible.Promise; | ||
var rehydratePromise = Promise.all(pluginTasks).then(function rehydratePluginTasks() { | ||
return context.rehydrate(obj.context); | ||
return context.rehydrate(obj.context || {}); | ||
}); | ||
@@ -206,0 +207,0 @@ |
@@ -78,2 +78,14 @@ /** | ||
/** | ||
* Getter for store from dispatcher | ||
* @method getStore | ||
* @returns {Object} | ||
*/ | ||
FluxContext.prototype.getStore = function getStore(store) { | ||
if (!this._dispatcher) { | ||
this._initializeDispatcher(); | ||
} | ||
return this._dispatcher.getStore(store); | ||
}; | ||
/** | ||
* Provides plugin mechanism for adding application level settings that are persisted | ||
@@ -80,0 +92,0 @@ * between server/client and also modification of the FluxibleContext |
{ | ||
"name": "fluxible", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"description": "A pluggable container for isomorphic flux applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99308
42
1047