Change naming convention recommendation? #994
jenstornell
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
I think it makes more sense the other way around, like at https://vuejs.org/v2/style-guide/#Order-of-words-in-component-names-strongly-recommended:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From the docs:
const someStore = useSomeStore()
.https://pinia.vuejs.org/core-concepts/actions.html#usage-with-the-options-api
It starts with
use
which is nice butsomeStore
ends withStore
. I think it would be better to start with it instead, expecially when having multiple store calls.Compare these two (from my own project).
Store
laststore
firstThe last example is much more readable because every
store
is lined up and therefor works like a visual group together.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions