Skip to content

Streaming Time

Latest
Compare
Choose a tag to compare
@antonybudianto antonybudianto released this 08 May 04:08
· 1 commit to master since this release
2710b10

cra-universal@5.0.2

  • Enable SSR streaming
    • Activate via App.defaultProps = { streaming: true } (false by default)
    • App must be the top-most element being rendered, if possible, put all your providers inside the App
    • If you have custom server, please check the universalRender: (req, res) => <App streaming /> part
    • If you need to conditionally stream (defaultProps is not suited for this), please use custom server and set the streaming prop as you like
  • Support TypeScript for custom server code in babel-preset-cra-universal