Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

with-error.tsx

25 lines709 Bytes

1import { Title } from '@solidjs/meta'
2import { PostViewer } from '~/components/post-viewer'
3import { UserInfo } from '~/components/user-info'
4​
5export default function Streamed() {
6 return (
7 <main>
8 <Title>Solid Query - Errors</Title>
9​
10 <h1>Solid Query - Errors</h1>
11​
12 <div class="description">
13 <p>
14 For more control over error handling, try leveraging the `Switch`
15 component and watching the reactive `query.isError` property. See
16 `components/query-boundary.tsx` for one possible approach.
17 </p>
18 </div>
19​
20 <UserInfo sleep={10} deferStream simulateError />
21​
22 <PostViewer sleep={3000} deferStream simulateError />
23 </main>
24 )