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

Method getServerState

packages/core/src/threads.ts:631–631  ·  view source on GitHub ↗

* Returns a stable initial snapshot for server-side rendering. * * `useSyncExternalStore` requires a `getServerSnapshot` during SSR/prerender * (e.g. Next.js); without one React throws "Missing getServerSnapshot". The * returned reference is stable across calls so React does not loop. Th

()

Source from the content-addressed store, hash-verified

629 * state.
630 */
631 getServerState(): ThreadState;
632 select: Store<ThreadState>["select"];
633 /**
634 * Memoized selectors bound to THIS store instance.

Callers 2

useThreadStoreSelectorFunction · 0.80
threads.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected