UseObserverDisconnect
katanakit-js / useObserverDisconnect
Function: useObserverDisconnect()
Section titled “Function: useObserverDisconnect()”function useObserverDisconnect(key): void;Defined in: infrastructure/observer/observer.service.ts:168
Disconnects and removes an observer by key, cleaning up all observed targets.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
key |
string |
The observer key to disconnect. |
Returns
Section titled “Returns”void
Example
Section titled “Example”useObserverDisconnect("hero");