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

Function Example

examples/solid/solid-start-streaming/src/components/example.tsx:9–23  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

7}
8
9export const Example: ParentComponent<ExampleProps> = (props) => {
10 return (
11 <div class="example">
12 <div class="example__header">
13 <div class="example__title">{props.title}</div>
14 <div>[deferStream={String(props.deferStream || false)}]</div>
15 <div style={{ 'margin-left': '10px' }}>
16 [simulated sleep: {props.sleep || 0}ms]
17 </div>
18 </div>
19
20 {props.children}
21 </div>
22 )
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected