MCPcopy
hub / github.com/TanStack/ai / renderUseChat

Function renderUseChat

packages/ai-preact/tests/test-utils.ts:25–29  ·  view source on GitHub ↗
(
  options: UseChatOptions = {} as UseChatOptions,
)

Source from the content-addressed store, hash-verified

23 * ```
24 */
25export function renderUseChat(
26 options: UseChatOptions = {} as UseChatOptions,
27): RenderHookResult<UseChatReturn, UseChatOptions> {
28 return renderHook(() => useChat(options))
29}

Callers 1

use-chat.test.tsFile · 0.90

Calls 2

useChatFunction · 0.90
renderHookFunction · 0.85

Tested by

no test coverage detected