seagull-js / seagull

the core of the seagull framework
https://seagull-js.github.io/seagull/
GNU Lesser General Public License v3.0
10 stars 5 forks source link

SSR: await for "componentDidMount" #13

Closed Anonyfox closed 6 years ago

Anonyfox commented 6 years ago

For all pages, if this handler exists, await it on the server. Context: this is the place where async data fetching happens ideally, so when the developer uses "await" inside this handler, do actually await for "componentDidMount" to finish, so there is a good SEO-friendly HTML rendered.

Harper04 commented 6 years ago

done in seagull-js/cli https://github.com/seagull-js/seagull-cli/commit/8e92156e1b6f6c38e03b5cf8c2830fd7697af8e9