Closed RobSteward closed 4 years ago
@RobSteward hey!
this really comes down to personal preferences, but what I always do is: whatever the module is (collection/doc) always use "data" as statePropName
.
Then it would be state.settings.data
instead of state.settings.settings
.
I hope this helps!
(i'll close the issue, but feel free to keep the conversation going)
BTW, organisation, naming and access be much improved in v2.0, which I'm working on hard now 😉
--
Vuex Easy Firestore was made with ♥ by Luca Ban.
If you use this library in your projects, you can support the maintenance of this library by a small contribution via Github 💜.
You can also reach out on twitter if you want a one-on-one coding review/lesson. 🦜
Hi,
I have the following firestore collection structure:
my vuex module looks like this:
The "problem" here is that referencing this from my store now looks like this:
This looks clumsy and inefficient.
Is there a better way to organize this?