posva / vuexfire

Check
https://github.com/vuejs/vuefire
MIT License
558 stars 49 forks source link

Question about modules and the docs #174

Closed mesqueeb closed 6 years ago

mesqueeb commented 6 years ago

I'm new to your library and IT LOOKS GREAT! I want to use it, but...... I'm having a very hard time understanding what exactly is happening, what the library creates in the store etc.

You wrote:

It works with modules as well, but you don't need to add the mutations there:

const store = new Vuex.Store({
modules: {
todos: {
state: {
todos: [], // Will be bound as an array
user: null // Will be bound as an object
},
}
}
})

I'm very confused why you create a module called todos and then it has a state with again todos and also user...

posva commented 6 years ago

Thanks, I'm glad you like it!

It's just an example, so it doesn't matter much about what's inside 😄 I updated the readme to a different example though