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

Function SuspenseTracker

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

Source from the content-addressed store, hash-verified

619 let suspenseCount = 0
620
621 const SuspenseTracker = ({ children }: { children: ReactNode }) => {
622 return (
623 <Suspense
624 fallback={
625 <div>
626 {(() => {
627 suspenseCount++
628 return `Loading...`
629 })()}
630 </div>
631 }
632 >
633 {children}
634 </Suspense>
635 )
636 }
637
638 const { result } = renderHook(
639 () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected