Answer the question
In order to leave comments, you need to log in
Why is rootState.settingsModule.settings returning null?
The following question arose on vuex: there is a module indicatorsModule
, from this module you need to access data from another module - settingsModule
. If you const settingsList
pass as a value rootState.settingsModule
, then in the console it is easy to see that the object settingsModule
has the desired property settings
:
However, if you try to access the property settings
, then the console will display null
:
At the same time, on the Network tab, it is easy to see that the request to settings
leaves and successfully returns a response:
How avoid this behavior?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question