Wait on (async) onMount from Parent before running (sync) onMount from Children?
Hey!
Let's assume you have a component that functions as a global store provider to all children. It sits atop all components.
Like so:
This store provider has some
onMount()
that runs asynchronously.
Another component, which is a child of our StoreProvider component, also has some onMount()
, but its not (!) async.
Then, unfortunately, the order will commence like so:
How can we ensure that the order runs like so:
Thank you!2 Replies