function loadState(reactorState, state) {
	  var dirtyStores = [];
	  var stateToLoad = (0, _immutableHelpers.toImmutable)({}).withMutations(function (stateToLoad) {
	    (0, _utils.each)(state, function (serializedStoreState, storeId) {
	      var store = reactorState.getIn(['stores', storeId]);
	      if (store) {
	        var storeState = store.deserialize(serializedStoreState);
	        if (storeState !== undefined) {
	          stateToLoad.set(storeId, storeState);
	          dirtyStores.push(storeId);
	        }
	      }
	    });
	  });

	  var dirtyStoresSet = _immutable2['default'].Set(dirtyStores);
	  return reactorState.update('state', function (state) {
	    return state.merge(stateToLoad);
	  }).update('dirtyStores', function (stores) {
	    return stores.union(dirtyStoresSet);
	  }).update('storeStates', function (storeStates) {
	    return incrementStoreStates(storeStates, dirtyStores);
	  });
	}
@param {ReactorState} reactorState
@param {Immutable.Map} state
@return {ReactorState}