Open History to see the last commit
1import { Suspense } from 'preact/compat'
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}