Add ability to access namespaced getters with dot notation #1258
What problem does this feature solve?
When working with a namespaced module (e.g. a users module), you can access items on the user module's state like this:
However, you can't access getters in the same way. This will return an error:
This is true even though, without modules, I can access getters with dot notation:
Is there a reason why this isn't possible with getters? It would be nice if we could access namespaced getters in the same way we can with namespaced state. This current behavior seems inconsistent.
What does the proposed API look like?
referenced this issue
Aug 3, 2018
I also find this pretty confusing, at least for new users. It's arguably fine once you know about it.
But a change like this would of course be backwards incompatible. However you could just keep the old names and add a deprecation notice to them, perhaps.