observeAgent
Unpublished development API. This package is under development and is not available as a published release.
Observe an app-owned session in an injection context. Destroying that context releases only this subscription; the app retains session lifetime.
import { observeAgent } from '@threadplane/angular';Declaration · overload 1
export declare function observeAgent<TSnapshot>(session: {
getSnapshot(): TSnapshot;
subscribe(notify: () => void): () => void;
}): Signal<TSnapshot>;Type parameters
TSnapshot
Parameters
session· required{ getSnapshot(): TSnapshot; subscribe(notify: () => void): () => void; }
Returns
Signal<TSnapshot>