# Managing State in Vue with Vuex

**URL:** <https://forum.ionicframework.com/t/managing-state-in-vue-with-vuex/205427>\
**Category:** Ionic Vue\
**Created:** [February 24, 2021, 3:59pm UTC](https://forum.ionicframework.com/t/managing-state-in-vue-with-vuex/205427 "2021-02-24T15:59:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [February 24, 2021, 3:59pm UTC](https://forum.ionicframework.com/t/managing-state-in-vue-with-vuex/205427/1 "2021-02-24T15:59:48Z")

</div>

Originally published at: [Managing State in Vue with Vuex - Ionic Blog](https://ionicframework.com/blog/managing-state-in-vue-with-vuex/)  
   
Every app at some point will need to tackle one of the most contentious subjects in front end development: State Management. If you ask ten different developers how to manage state in an app, you’ll most likely get ten different answers, as everyone can have a slightly different approach if they were to build their…

---

<div class="post-metadata">

**Author:** ![richardshergold](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/richardshergold/32/91823_2.png) [@richardshergold](https://forum.ionicframework.com/u/richardshergold)\
**Post date:** [March 1, 2021, 11:47am UTC](https://forum.ionicframework.com/t/managing-state-in-vue-with-vuex/205427/3 "2021-03-01T11:47:48Z")

</div>

Mike, thanks for this. I’ve been using NgRx in an Ionic/Angular app for the last couple of years. To be honest my thoughts yo-yo on whether I am doing things properly all the time. Sometimes I’m glad I used NgRx and sometimes I realised I OVER-USED it - I think our app is probably a classic case of where it should be used in parts of the app but maybe not all over the app.

Anyway recently I dived into Vue. One of the things I found with Vuex is that I was far more likely to re-use an Action whereas with NgRx I had tried to keep to [Mike Ryan’s Good Action Hygene](https://www.youtube.com/watch?v=JmnsEvoy-gY) principles and have each Action unique. Vuex does not seen to encourage this so much (but maybe it’s because I am only just getting started and have not got into it enough yet)

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [March 1, 2021, 5:22pm UTC](https://forum.ionicframework.com/t/managing-state-in-vue-with-vuex/205427/4 "2021-03-01T17:22:28Z")

</div>

i think that this “issue/concern” is one of the reasons that tech gets overly complex… i understand what he is trying to accomplish, but all this does is get people caught up who/what is right who/what is wrong instead of adding value to the deliverable… but like him, this is just my opinion and I don’t think the state manager police are going to chase you down for not following the pattern or for reusing an action

---

<div class="post-metadata">

**Author:** ![richardshergold](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/richardshergold/32/91823_2.png) [@richardshergold](https://forum.ionicframework.com/u/richardshergold)\
**Post date:** [March 2, 2021, 9:11am UTC](https://forum.ionicframework.com/t/managing-state-in-vue-with-vuex/205427/5 "2021-03-02T09:11:10Z")

</div>

Yes, I agree. However, I must admit that when I’ve followed those principals with NgRx it has provided benefits (despite the extra boiler plate). Knowing **exactly** the source of any action has certainly helped debug issues. And in cases where I have not followed it and have duplicated actions, it has taken a bit more time to sort out.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [March 3, 2021, 3:58pm UTC](https://forum.ionicframework.com/t/managing-state-in-vue-with-vuex/205427/6 "2021-03-03T15:58:19Z")

</div>

Both points are valid here. There’s a balance of being dry/clean without over complicating things. All just personal preference and not a “one is correct and one is wrong”
