Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple async dependendants #82

Open
innovate-invent opened this issue Oct 3, 2019 · 0 comments
Open

Multiple async dependendants #82

innovate-invent opened this issue Oct 3, 2019 · 0 comments

Comments

@innovate-invent
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant