Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: The server could not finish this Suspense boundary #3135

Closed
1 task
Crisis2010 opened this issue Apr 18, 2022 · 1 comment · Fixed by #3160
Closed
1 task

🐛 BUG: The server could not finish this Suspense boundary #3135

Crisis2010 opened this issue Apr 18, 2022 · 1 comment · Fixed by #3160
Assignees

Comments

@Crisis2010
Copy link

What version of astro are you using?

1.0.0-beta.12

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac

Describe the Bug

I tried to lazy load huge component with React 18 and Suspense, but got an Error.

In my case i cant render in only in SSR because of animation. Maybe I'm doing something wrong?

Uncaught Error: The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.
    at updateDehydratedSuspenseComponent (chunk-PDRTL27X.js:15121:100)
    at updateSuspenseComponent (chunk-PDRTL27X.js:14908:28)
    at beginWork (chunk-PDRTL27X.js:15676:22)
    at beginWork$1 (chunk-PDRTL27X.js:18884:22)
    at performUnitOfWork (chunk-PDRTL27X.js:18363:20)
    at workLoopSync (chunk-PDRTL27X.js:18300:13)
    at renderRootSync (chunk-PDRTL27X.js:18279:15)
    at performConcurrentWorkOnRoot (chunk-PDRTL27X.js:17844:83)
    at workLoop (chunk-PDRTL27X.js:197:42)
    at flushWork (chunk-PDRTL27X.js:176:22)

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-9cpjmy-pkb9zu?file=src/pages/index.astro

Participation

  • I am willing to submit a pull request for this issue.
@matthewp
Copy link
Contributor

Here's a similar issue with Next.js: vercel/next.js#35564

It sounds like we need to use streaming rendering maybe, going to try that out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants