1

I want to know why when I made a mutation commit the payload is returned as a proxy.

Like you can see here I have this store that contains modules:

enter image description here

This is the module that I'm talking about:

enter image description here

As you can see this store make a call that brings an array of songs from firebase, and after that commit the mutation to change the state of the array songs.

Well the problem is that the action is dispatched in this component:

enter image description here

As you can see in the next picture the data comes from firebase but when I check in the console that I made in the mutations, all the state shows up as a proxy object.

enter image description here

In Vue.js developer tools the state shows as undefined.

enter image description here

For more info this is the index.js that brings all the modules from the folder modules into the main index.js of the store.

enter image description here

Packa
  • 173
  • 14
Alan
  • 349
  • 3
  • 15

0 Answers0