Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
89
const hasWindow = () => typeof window !==
'undefined'
90
91
/**
92
* Per-thread history adapter. Each thread's messages live under their own
Callers
3
threads.tsx
File · 0.85
readIndex
Function · 0.85
writeIndex
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected