Home > react > CreateGlobalStateResult > watchStateImmediate
Signature:
watchStateImmediate(callback: (nextState: S, prevState: S) => any): () => void;
Parameter | Type | Description |
---|---|---|
callback | (nextState: S, prevState: S) => any |
Returns:
() => void