Closed SethDavenport closed 7 years ago
Hi Seth. Thank you for the note. Good point about ng2-redux.
This commit upgrades the project to RC6 and replaces all the examples and README info with normal NgRedux instantiation (instead of using preexisting stores).
I hope this addresses your concerns.
Yeah took a look at the new docs - this looks great!
This is a question from @lemind on gitter, but I think it's a good one.
The README example shows a situation where a raw redux store is created and then
provided
to Angular2. Connecting to ng2-redux-form also happens at bootstrap time.However the ng2-redux documentation shows examples of the store being configured after bootstrap; typically in the
NgModule
or main App Component class.The reason we do this is so you can construct your store using middlewares that use dependency injection; if you configure your store at bootstrap time, the DI isn't running yet and this limits what you can do in your middlewares.
So - is it possible to use ng2-redux-form with a store that's constructed after bootstrap (i.e. not with a provider)?