foxbenjaminfox/vue-async-computed

Multiple async dependendants

innovate-invent opened this issue · 0 comments

I have a situation where I have a hierarchy of components that all have to wait on the same asynchronous event. Currently I am forgoing reactive functionality and passing a promise as a prop to each child. All components wait on the promise and return the result using an async-computed property.

The only means of retaining the reactive functionality is to have the root node own the async-computed and pass the result as a prop to its children. This means that I have to have a null check everywhere I access the result and means I can't have component specific defaults.

It would be great if there was some way to forward the promise while retaining reactive functionality.