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,.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e52c5f-43f06.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e52c5f-43f06.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?