T
T
TheRevan2019-02-19 11:14:04
Vue.js
TheRevan, 2019-02-19 11:14:04

Where to store non-component vuex data?

There is an api of a large service. Tyk , it has a bunch of semi-static data. where is it better to store them, in vuex or in the component itself? Or in general all requests for the server should be moved to a separate module?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Drozdov, 2019-02-19
@TheRevan

Each component works directly with vuex, it should be the entry point and store, or synchronize data from the server / api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question