O3 Framework / subscribeToContext
subscribeToContext<
T>(namespace,callback): () =>void
Defined in: packages/framework/esm-context/src/context.ts:114
Subscribes to updates of a given namespace. Note that the returned object is immutable.
T extends object = object
string
the namespace to subscribe to
a function invoked with the current context whenever
A function to unsubscribe from the context
():
void
void