MCPcopy Index your code
hub / github.com/coder/coder / readInfiniteChats

Function readInfiniteChats

site/src/api/queries/chats.test.ts:100–106  ·  view source on GitHub ↗
(
	queryClient: QueryClient,
	opts?: InfiniteChatsTestOptions,
)

Source from the content-addressed store, hash-verified

98
99/** Read chats back from the infinite query cache. */
100const readInfiniteChats = (
101 queryClient: QueryClient,
102 opts?: InfiniteChatsTestOptions,
103): TypesGen.Chat[] | undefined => {
104 const data = queryClient.getQueryData<InfiniteData>(infiniteChatsKey(opts));
105 return data?.pages.flat();
106};
107
108const makeChat = (
109 id: string,

Callers 1

chats.test.tsFile · 0.70

Calls 1

infiniteChatsKeyFunction · 0.90

Tested by

no test coverage detected