Recommended naming convention should be changed or mapStores should be updated #1578
jonatan-mobal
started this conversation in
Ideas
Replies: 1 comment
-
done |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The recommended naming convention for nested stores is, for example, 'nested/module'.
But now, if you want to use the
mapStores
API, the default mapping will be tonested/moduleStore
. You obviously can't callthis.nested/moduleStore
, so instead, you need to callthis.['nested/moduleStore']
.Would it not be better if the naming convention was 'nestedModule' or if mapStores changed
nested/moduleStore
intonestedModuleStore
automatically?Beta Was this translation helpful? Give feedback.
All reactions