MCPcopy Create free account
hub / github.com/TanStack/router / Deferred

Function Deferred

e2e/solid-start/basic-solid-query/src/routes/deferred.tsx:26–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24})
25
26function Deferred() {
27 const [count, setCount] = createSignal(0)
28
29 return (
30 <div class="p-2">
31 <Suspense fallback="Loading Middleman...">
32 <DeferredQuery />
33 </Suspense>
34 <div>Count: {count()}</div>
35 <div>
36 <button onClick={() => setCount(count() + 1)}>Increment</button>
37 </div>
38 </div>
39 )
40}
41
42function DeferredQuery() {
43 const deferredQuery = useQuery(() => deferredQueryOptions())

Callers

nothing calls this directly

Calls 1

countFunction · 0.50

Tested by

no test coverage detected