@threadplane/ag-uiInterfacev0.3.7

SessionLifecycleSource

An observable SessionLifecycle; useSyncExternalStore accepts it.

import type { SessionLifecycleSource } from '@threadplane/ag-ui';

Declaration

export interface SessionLifecycleSource  {
  getSnapshot(): SessionLifecycle;
  subscribe(notify: () => void): () => void;
}

Members

getSnapshot · overload 1

getSnapshot(): SessionLifecycle;

Returns

SessionLifecycle

subscribe · overload 1

subscribe(notify: () => void): () => void;

Parameters

notify · required
() => void

Returns

() => void