Home > react > CreateGlobalStateResult > watchState
Signature:
watchState(callback: (nextState: S, prevState: S) => any): () => void;
Returns:
() => void