Function: when()
See
https://mobx.js.org/README.html
Call Signature
ts
function when(predicate: () => boolean, opts?: IWhenOptions): Promise<void> & {
cancel: void;
};Defined in: mobx:
Parameters
| Parameter | Type |
|---|---|
predicate | () => boolean |
opts? | IWhenOptions |
Returns
Promise<void> & { cancel: void; }
Call Signature
ts
function when(
predicate: () => boolean,
effect: Lambda,
opts?: IWhenOptions): IReactionDisposer;Defined in: mobx:
Parameters
| Parameter | Type |
|---|---|
predicate | () => boolean |
effect | Lambda |
opts? | IWhenOptions |