Hi all. I'd like to make an app with Angular 2 and Redux. How do practitioners of this starter use it with Redux?
From my view of other Angular2+Redux starters, I get the feeling that it totally changes the structure of an app from files being grouped by feature to being grouped by file type.
src src/app src/app/store src/app/store/feature1 src/app/store/feature1/feature1.actions.ts src/app/store/feature1/feature1.reducers.ts src/app/store/feature1/feature1.state.ts src/app/store/feature1/feature1.models.ts
*.models.tsonly when necessary
app.state.tsto manage the HMR state, but it has nothing to do with the Redux’ app state interface… I suggest you to rename it to prevent confusion
src/app/storeas that defines the app’s global state
ok. would this be more accurate then?
src/app src/app/store src/app/store/entityType1 src/app/store/entityType1/entityType1.actions.ts src/app/store/entityType1/entityType1.reducers.ts src/app/store/entityType1/entityType1.state.ts src/app/store/entityType1/entityType1.models.ts
src/app src/app/feature1 src/app/feature1/feature1.module.ts src/app/feature1/feature1.component.ts src/app/feature1/feature1.template.ts src/app/feature1/subfeature/ src/app/feature1/...
seamless-immutableis also better because it respects the exact object signature… you can use the arrays and objects with the exact same methods and they work perfectly, while with ImmutabeJS everything is different from standard