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
The issue is that currently Suspense will swallow the thrown promise during prepass. I added a failing test in #11 . I could not yet come up with a nice way to make Suspense a no-op during prepass.
As a workaround you could replace Suspense with Fragment during SSR/prepass for now.
I'm able to get through the pre-pass stage, but at the render stage, I get pending promise error.
So it looks like lazy imports are not resolved by pre-pass.
I have a boilerplate (the pre-pass error is in the branch prepass-ssr-issue):
https://github.com/r-k-t-a/starter/tree/prepass-ssr-issue
Prepass use:
https://github.com/r-k-t-a/starter/blob/prepass-ssr-issue/src/koa/routes/defaultRoute/defaultRoute.tsx#L40
Lazy imports:
https://github.com/r-k-t-a/starter/blob/prepass-ssr-issue/src/App.tsx
The text was updated successfully, but these errors were encountered: