Do vuex modules still require namespacing?

Viewed 3434

I have set up a rather large Vuex project with multiple modules.

https://vuex.vuejs.org/en/modules.html

To grab the example of a getter a getter from a search module could be addressed like so:

computed: {
    filters() {
        return this.$store.state.search.filters;
    }
}

Because I need to access the state of the module by referencing the search property in my property chain do I still need to namespace my module?

The documentation states the following:

By default, actions, mutations and getters inside modules are still registered under the global namespace - this allows multiple modules to react to the same mutation/action type.

https://vuex.vuejs.org/en/modules.html#namespacing

But if the module is under its own property in the store isn't the only conflict that could happen between modules themselves, which can easily be prevented by a simple naming convention of the files?

What am I missing here?

1 Answers
Related