react-code-dataset / react-query /examples /solid /solid-start-streaming /src /routes /with-error.tsx
Download react-query/examples/solid/solid-start-streaming/src/routes/with-error.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/solid/solid-start-streaming/src/routes/with-error.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/solid/solid-start-streaming/src/routes/with-error.tsx
-
curl -L -o with-error.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/solid/solid-start-streaming/src/routes/with-error.tsx
709 Bytes
| import { Title } from '@solidjs/meta' | |
| import { PostViewer } from '~/components/post-viewer' | |
| import { UserInfo } from '~/components/user-info' | |
| export default function Streamed() { | |
| return ( | |
| <main> | |
| <Title>Solid Query - Errors</Title> | |
| <h1>Solid Query - Errors</h1> | |
| <div class="description"> | |
| <p> | |
| For more control over error handling, try leveraging the `Switch` | |
| component and watching the reactive `query.isError` property. See | |
| `compoennts/query-boundary.tsx` for one possible approach. | |
| </p> | |
| </div> | |
| <UserInfo sleep={10} deferStream simulateError /> | |
| <PostViewer sleep={3000} deferStream simulateError /> | |
| </main> | |
| ) | |
| } | |