MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / clearContext

Method clearContext

packages/angular/src/lib/threads.ts:375–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373
374 untracked(() => {
375 const clearContext = (): void => {
376 if (this.#hasDispatchedContext()) {
377 this.#store.setContext(null);
378 }
379 lastDispatchedContext = null;
380 this.#hasDispatchedContext.set(false);
381 };
382
383 // Disabled: stay inert. Clear any previously-dispatched context so an
384 // in-flight subscription is torn down and no further fetch is issued.

Callers

nothing calls this directly

Calls 2

setContextMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected