ngrx / store

RxJS powered state management for Angular applications, inspired by Redux
MIT License
3.9k stars 311 forks source link

Question about implementing "light" store pattern in angular 1 (not relative to this module) #420

Closed mbret closed 7 years ago

mbret commented 7 years ago

Hello I recently implemented a simple and light implementation of "store" pattern in my angular app. We do not have a system like in React app to refresh UI on store update but it allows us to have a more clean and robust way to manage app store and of course having the possibility of tracking app state / restoration / share / middleware etc. In simple words components can dispatch action which then update the store through reducers. We could add more functionality but I just wanted try this. It works well as long as we are carefull and dont alter the store inside component directly. What do you guys think about this king of feature ? Do you have some recomandations ?

jotatoledo commented 7 years ago

This isnt a real issue. Your question could lead to opinionated answers. For something like this, you should try quora or a similar platform.

mbret commented 7 years ago

Yeah I didn't know how to present this and did not want to flood this repository in any way ^^Just wanted to have a talk with this community. Thanks you :)

robwormald commented 7 years ago

It works well as long as we are carefull and dont alter the store inside component directly The entire reason projects like ngrx and redux exist is because basically, this never, ever works in reality. :)