()
| 2 | import ApproachTabs from './components/ApproachTabs' |
| 3 | |
| 4 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected