lazarv / react-server

The easiest way to build React apps with server-side rendering
https://react-server.dev
MIT License
121 stars 6 forks source link

fix: error handling race condition when using ssr rendering #74

Closed lazarv closed 2 weeks ago

lazarv commented 2 weeks ago

There was a race condition in the error handling when the SSR renderer in the worker sent start and error messages back to the main thread. With this PR the error is just saved and sent with the "start" message to mitigate race conditions.

This PR also adds a documentation page about the framework-level error boundary component and how to use it to handle errors granularly.

github-actions[bot] commented 2 weeks ago

✅ Documentation preview deployed to: https://react-server-docs-j2x8zi6cf-lazarv-team.vercel.app