A
A
Artur Galyaev2021-04-01 20:18:33
Vue.js
Artur Galyaev, 2021-04-01 20:18:33

How to create alias in vuex store?

I have a settings module in which there is a settings state.
When accessed from other modules, rootState.settings.settings is obtained. How can this expression be shortened?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2021-04-01
@art5455

https://vuex.vuejs.org/en/guide/getters.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question