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

Function App

examples/preact/optimistic-updates/src/App.tsx:4–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import ApproachTabs from './components/ApproachTabs'
3
4export default function App() {
5 return (
6 <main style={{ maxWidth: 600, margin: '0 auto', padding: '2rem 1rem' }}>
7 <h1>Optimistic Updates with TanStack Query</h1>
8 <p style={{ color: '#666', marginBottom: '1.5rem' }}>
9 Add todos to see optimistic updates in action. The server randomly fails
10 ~30% of the time so you can observe automatic rollback.
11 </p>
12 <Suspense fallback={<p>Loading todos…</p>}>
13 <ApproachTabs />
14 </Suspense>
15 </main>
16 )
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected