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

Method setIsLoading

packages/ai-client/src/chat-client.ts:496–500  ·  view source on GitHub ↗
(isLoading: boolean)

Source from the content-addressed store, hash-verified

494 }
495
496 private setIsLoading(isLoading: boolean): void {
497 this.isLoading = isLoading
498 this.callbacksRef.current.onLoadingChange(isLoading)
499 this.events.loadingChanged(isLoading)
500 }
501
502 private setStatus(status: ChatClientState): void {
503 this.status = status

Callers 2

cancelInFlightStreamMethod · 0.95
streamResponseMethod · 0.95

Calls 1

loadingChangedMethod · 0.80

Tested by

no test coverage detected