it just makes more sense this way with riot's one way dataflow(parent to child), compare to what we have right now:
app
-- child
--- grandchild
say if we want to populate grandchild, we need to pass the data around from the root and pass to each child component attributes until it reaches grandchild which just isn't elegant.
let grandchild_data = await populate()
let html = render('app', App, { ssr : true, url : "/browse", { data : { grandchild : grandchild_data }}});
It would be a great idea to support asynchronous mounts in SSR, since a lot of our data population logic are promise-based (external fetching)
it just makes more sense this way with riot's one way dataflow(parent to child), compare to what we have right now: app -- child --- grandchild
say if we want to populate grandchild, we need to pass the data around from the root and pass to each child component attributes until it reaches grandchild which just isn't elegant.