Type Alias: QueryUnregister
ts
type QueryUnregister = () => void;Defined in: src/wirestate-core/plugin/queries/queries.ts:63
Removes one query handler registration.
Returns
void
Remarks
The callback returned by QueryBus.register(...) removes that exact registration. If a query has a shadowed handler underneath it, unregistering the active handler restores the previous one.
Example
typescript
const unregister: QueryUnregister = queryBus.register("GET_USER", handler);
unregister();