vuejs / vuex

🗃️ Centralized State Management for Vue.js.
https://vuex.vuejs.org
MIT License
28.42k stars 9.58k forks source link

How to ensure that the promise of the layout component obtains the value before the route component sends the request #2171

Closed hyahm closed 2 years ago

hyahm commented 2 years ago

What problem does this feature solve?

When this page is refreshed. In the layout component, I get some information and store it in vuex. The component in Vue router needs to get this value to make the next request,

What does the proposed API look like?

Is there an API that can block a value in vuex from executing the request only after it is updated

cuebit commented 2 years ago

Issues are applicable when an issue is relevant to the library codebase or feature requests.

For general questions, discussions and troubleshooting, please head over to https://chat.vuejs.org