Answer the question
In order to leave comments, you need to log in
How to pass data in component tree of React/Vue app?
The application describes a multi-level structure, several levels of the component tree. The data is stored-loaded in the form of a similar tree.
Moreover, only the id of the objects are stored and known when the application is initialized, and the full data for display is asynchronously requested from a third-party API. Those. when you open some object, at first only the id of the child ones are visible, and after half a second, the avatars-names are loaded.
I see two options for transferring data inside:
Answer the question
In order to leave comments, you need to log in
It's better to ask in one place at the top and pass down. Execution control will become obvious, as the application grows, the transition to Vuex will become painless.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question