Repository navigation
Refresh error boundary docs and examples - #240
Conversation
|
@aurorascharff is attempting to deploy a commit to the Brian Vaughn's projects Team on Vercel. A member of the Team first needs to authorize it. |
da794f0 to
b4c87eb
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bvaughn
left a comment
There was a problem hiding this comment.
Thanks Aurora! This is such a helpful PR 🙇🏼
Pushing some small tweaks and then it should be good!! 🤩 |
|
Let me know when you're happy with things and I'll merge! |
|
(I was hoping that updated the react-lib-tools dep would fix the failing CI job. Unfortunately it didn't. Sorry for the noise. Feel free to force-push over top of my commit if that's more convenient, and I'll debug this in another branch like I should have done to begin with) |
5aca0fe to
4df9a7f
Compare
4df9a7f to
07f92fa
Compare
|
@bvaughn Check it out, I'm done tweaking! |
|
Readme updates have been published in react-error-boundary@6.1.2 |
What
Refreshes the README and docs site so the first-pass docs explain the modern
react-error-boundaryworkflow more directly.fallbackRender, retry/reset, and loggingErrorBoundarysource/API comment with compact, current catch rulesuseTransitionAction path for async errorsWhy
React's error boundary docs still show the class-component primitive, while function-component users often land here for a reusable boundary. The existing docs explain the API, but the React 19 async behavior is easy to miss.
This keeps
useErrorBoundarypositioned as the manual path for async work outside Actions, while documenting that errors thrown from a function passed to thestartTransitionfunction returned byuseTransitioncan be caught by the nearest boundary.Generated docs, examples, and search artifacts were updated from the refreshed examples and JSDoc.