Recommended naming convention should be changed or mapStores should be updated #1578
jonatan-mobal
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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