Currently grappling with a challenge while working on Vuex and VueJS involving the Computed property.
To sum it up, I have a nested object within the Vuex state, attempting to retrieve a key from this inner object in a Vuex getter to display the value in a component. However, an error stating "cannot read property id of undefined" keeps popping up.
I believe there are two crucial aspects to this issue.
Firstly, I can successfully display the value by assigning it to a variable within the data option using setTimeout() in mounted().
The second aspect is that I am able to extract a key from an object, return the value in a Vuex getter, and render it in a component without any issues.
I am wondering if it's possible to fetch the value of an object within the parent object in a Vuex getter prior to mounting a component for rendering.
Your insights on this matter would be greatly appreciated. Thank you in advance.