MCPcopy Create free account
hub / github.com/TanStack/ai / hasWindow

Function hasWindow

examples/ts-react-chat/src/routes/threads.tsx:89–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89const hasWindow = () => typeof window !== 'undefined'
90
91/**
92 * Per-thread history adapter. Each thread's messages live under their own

Callers 3

threads.tsxFile · 0.85
readIndexFunction · 0.85
writeIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected