Now our code is using React.Suspense throughout our code base. With Suspense, loading ui is Suspense's work. But how about error ui? I used to see some code examples that uses Errorboundary component with suspense before. But as seeing the
React documentation, there aren't any official recommendation or code example that put Suspense and Errorboundary together.
We should investigate more on this but there's one error-boundary library by bvaughn, who is in the core React team.
https://github.com/bvaughn/react-error-boundary
Now our code is using React.Suspense throughout our code base. With Suspense, loading ui is Suspense's work. But how about error ui? I used to see some code examples that uses Errorboundary component with suspense before. But as seeing the
React documentation, there aren't any official recommendation or code example that put Suspense and Errorboundary together.
We should investigate more on this but there's one error-boundary library by bvaughn, who is in the core React team.
https://github.com/bvaughn/react-error-boundary