vuex of objects?
                  
                  
                  
                  
                  
                  I mean if I have something like this
                  
                  
                  
                  
                  
                  data: () => ({ 
                  
                  
                  user: {}
                  
                  
                  })
                  
                  
                  
                  
                  
                  And i fill the user object from a state in vuex i need to assign every field manually like
                  
                  
                  
                  
                  
                  user.id = state.user.id
                  
                  
                  etc in order to have the ability to change them inside the component form
                  
                  
                  
                  
                  
                  If I do something like:
                  
                  
                  this.user = state.user
                  
                  
                  
                  
                  
                  somehow it thinks that I'm manipulating the state, which is not because I've the local variable
                  
                  
                
you can use mapState helper function :) it solves exactly that I believe.
Обсуждают сегодня