Vuex modules | fetching data with axios

preview_player
Показать описание
A simple example on how to use Vuex Modules.
This is a modified version of my 2018 (Vuex | State management example with Axios) video.
Enjoy it!
Рекомендации по теме
Комментарии
Автор

I wished I saw this video earlier! Watching this helped me solved my problems of rendering using Vuex! Thank you very much

teyvattraveler
Автор

Thank you very much ! Now I understand namespace module clearly

dwikurniawan
Автор

Thank you very much ! love your tutorials :)

unmy
Автор

Thank you very much for this. It's super clean as explanation.

I have some questions:
1. I want to have default value for search filters. Then I want to update them, before I press search which launch an axios call. How can I achieve that ?
2. Binding, can I bind a value in my vue component to store, when the v-model updates the variable ? I want to update the store, and vice versa.
3. Does loading tones of state slow down a component ?

brunobernard
Автор

Thank you. First of all a thousand apologies I am new in vueJs, an query, that means that in each module I have to import axios, is there any way to only import it once?

jilverdelacruzflores
Автор

Thank you very much for the great tutorial update. Would you mind sharing the source code

MohdSuhairiAhmadSoobni
Автор

hello,
i got this error!
Error in created hook: "TypeError: Cannot read property 'dispatch' of undefined"

streetfc
Автор

I keeping getting this errror. [vuex] unknown action type: questions/loadQuestions

Corzhy