MCPcopy Create free account
hub / github.com/TanStack/db / SuspenseWrapper

Function SuspenseWrapper

packages/react-db/tests/useLiveSuspenseQuery.test.tsx:51–53  ·  view source on GitHub ↗
({ children }: { children: ReactNode })

Source from the content-addressed store, hash-verified

49
50// Wrapper component with Suspense
51function SuspenseWrapper({ children }: { children: ReactNode }) {
52 return <Suspense fallback={<div>Loading...</div>}>{children}</Suspense>
53}
54
55describe(`useLiveSuspenseQuery`, () => {
56 it(`should suspend while loading and return data when ready`, async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected