vitejs / vitejs/vite-plugin-react
Add error handling example
Open
Nobody has claimed this yet.
good first issue
plugin: rsc
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 269
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 19
Description
Add an example of using common error handling API such as onError, digest, captureOwnerStack, etc. See
- https://github.com/wakujs/waku/blob/4d49d0b6ff31f5f5bcdaeac5a728490dae48d946/packages/waku/src/lib/vite-rsc/ssr.tsx#L55-L65
- https://github.com/wakujs/waku/blob/4d49d0b6ff31f5f5bcdaeac5a728490dae48d946/packages/waku/src/lib/utils/render.ts#L20-L29
Also more functional robustness for:
- handle ssr error and fallback to csr
- handle broken rsc stream on client (e.g. network error / server function error)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.