Will the frequently used list, obtained through API be made into a state? of vuex?

excuse me, I have a requirement that I have a select component that uses list data, which list data is obtained through API.

excuse me, I will use this list data in many components. Will you use it as a state? of vuex?

Mar.12,2021

you already have the answer in your heart, yes.


borrow the question to ask the specific operation steps is like this?

    The
  1. a page gets list data and stores it locally through localstorage using vuex,;
  2. The
  3. b page fetches the list data from the localstorage through vuex,.

modify it. The above steps are unreasonable. I just came up with a new idea:

  1. get list data globally and store it locally through localstorage using vuex,;
  2. The
  3. list b page fetches the list data from the localstorage through vuex,.
Menu