-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Voie + Vuex #5
Comments
Frankly that was the main reason I created Voie: I was unsatisfied with component being rendered before its data is available (that's the main thing that sets Voie apart from vue-router). However, Voie covers cases when you don't need to wait for data — just don't use Note that this is not considered "bad" or "non-voie-way" :D You just need to understand that the difference is in responsibility: in case of omitting
K, that was just few thoughts — the actual decision is all yours :) |
I ended up loading the data inside the component (we really should have a term for that approach), and as you said there are some big problems with this approach:
Using the I will try to find a way to use Vuex actions inside the PS: Really liking Voie so far! Keep the great work! |
@jonagoldman Thanks for your kind words! Now, about I'll add |
👍 I realized that inside the Anyways I close this issue and continue it on vuejs/vuex#26 as its more related to the store pattern of Vuex. Maybe I will post an example there if someone is reading this... |
I'm trying to use Voie with Vuex, but I 'm stuck. Maybe you can give me a hint on this one.
I'm basically taking your demo app and Vuex examples and trying to make them work together.
You suggest loading the state data in the
enter
method like this:But Vuex pattern goes something like this (inside a component, using
computed
data and thecreated
method):I can get it to work by not using the
enter
method of the state and loading the data inside the component, but not sure thats the correct way and if theres any caveats in that.The text was updated successfully, but these errors were encountered: