You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new renderToNodeStream React moved ahead by providing way to reduce TTFB and First paint.
Webpack generates assets which are appended to .hbs file using HtmlWebpackPlugin. React generate HTML on server using renderToString which is appended to .hbs using koa-hbs and sent to client.
To switch from renderToString to renderToNodeStream we need to separate .hbs in two parts, above and below some handlebar expression where react appends streaming data using renderToNodeStream.
With the current documentation of koa-hbs I do not found a way to get compiled html and take care of streaming by self.
Please expose an API to get comiled HTML or add support for streaming HTML.
The text was updated successfully, but these errors were encountered:
With the new renderToNodeStream React moved ahead by providing way to reduce TTFB and First paint.
Webpack generates assets which are appended to .hbs file using HtmlWebpackPlugin. React generate HTML on server using renderToString which is appended to .hbs using koa-hbs and sent to client.
To switch from renderToString to renderToNodeStream we need to separate .hbs in two parts, above and below some handlebar expression where react appends streaming data using renderToNodeStream.
With the current documentation of koa-hbs I do not found a way to get compiled html and take care of streaming by self.
Please expose an API to get comiled HTML or add support for streaming HTML.
The text was updated successfully, but these errors were encountered: