Namespacing Fozzie component specific Vuex stores internally #730
kevinrodrigues
started this conversation in
General
Replies: 2 comments 1 reply
-
So would following an |
Beta Was this translation helpful? Give feedback.
1 reply
-
I've gone with the following naming convention in case anyone needs to do the same:
format: |
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
-
Just wanted to get some thoughts/opinions on an issue i've come across with Vuex registration.
I have a component that could be used in multiple places/verticals. It registers a Vuex store name as
xyz
internally. If the consuming app happens to register the same name (xyz
) this could break the components Vuex store on the consuming apps side (silently in some cases). Have we considered a naming convention for fozzie-component related Vuex registration? I did looked at the option of exposing the store from within the component so the consuming app can register it themselves, possibly avoiding a name clash, but for a component that is intended to be used in multiple areas of JET having to set the store up manually in each consuming app feels unnecessary & I would like to avoid this if possible (if it was used in one place it would be ok)Problem
// [FOZZIE-COMPONENT]: we register a Vuex store...
// [CONSUMING-APP]: We might already have a store being registered with the same name...
Beta Was this translation helpful? Give feedback.
All reactions