MCPcopy Create free account
hub / github.com/TanStack/query / Streamed

Function Streamed

examples/solid/streaming-solid-start2/src/routes/with-error.tsx:5–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 )
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected