Closed JounQin closed 6 years ago
Yep, react-async-component
needs to be updated before that will work. It's in progress.
FYI, I have released an alpha version of react-async-component that works 👍
@ctrlplusb does the alpha version published to npm? it seem bootstrap
still not works in SSR
Before upgrading, it will wait for API called even at the first time and render whole page, but after upgrading, no list content is renderer at the first time.
You can check https://github.com/JounQin/react-hackernews and run
yarn dev
and visit http://localhost:4000 to view the correct SSR page, then simply upgradereact-async-bootstrapper
to2.0.0
, then you will see incorrect page at first rendering.Online Link: https://react-hn.now.sh/ (not upgrade yet)
I don't know if it is related to
react-async-bootstrapper@2.0.0
orreact-async-component@1.0.2
is not compatible withreact-async-bootstrapper@2.0.0