Skip to content

Commit

Permalink
Merge pull request #82 from Microsoft/alebet/fixSeedReducers
Browse files Browse the repository at this point in the history
Seed all reducers at once
  • Loading branch information
abettadapur committed May 2, 2019
2 parents 8996551 + ceee2df commit 89ee2c1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export function getModuleManager<State>(
_reducerManager.add(key, reducerMap[key]);
}
}

/* Fire an action so that the newly added reducers can seed their initial state */
_seedReducers();
};

const _removeReducers = (
Expand Down Expand Up @@ -122,6 +119,9 @@ export function getModuleManager<State>(
}
});

/* Fire an action so that the newly added reducers can seed their initial state */
_seedReducers();

// add the sagas and dispatch actions at the end so all the reducers are registered
justAddedModules.forEach(module => {
// Let the extensions know we added a module
Expand Down

0 comments on commit 89ee2c1

Please sign in to comment.