Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Suspense and React.lazy isn't working #11960
I have a error on
Note that I'm not using
Steps to reproduce
Build should success.
Thanks so much for opening this issue! As stated, this is slightly tangential to Gatsby.
Gatsby is using SSR which Suspense & React.Lazy not yet support. You can move to a full client site to use those features but to have the static generation of pages you sadly can't. React recommonds to use the Loadable components package until SSR is resolved.
Original recommondation from React Team:
If we can help further--please don’t hesitate to reach out or comment on this issue, and we’d love to take another look.
Thanks for using Gatsby