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

Function refresh

packages/core/src/threads.ts:1339–1343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1337 store.dispatch(threadAdapterEvents.contextChanged({ context }));
1338 },
1339 refresh(): void {
1340 const { sessionId, context } = store.getState();
1341 if (!context) return;
1342 store.dispatch(threadRestEvents.listRequested({ sessionId }));
1343 },
1344 refetchThreads(): void {
1345 const { sessionId, context } = store.getState();
1346 if (!context) return;

Callers 1

useMcpIntrospectFunction · 0.50

Calls 2

getStateMethod · 0.65
dispatchMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…