vtils

Home > react > CreateGlobalStateResult > watchState

CreateGlobalStateResult.watchState() method

Signature:

watchState(callback: (nextState: S, prevState: S) => any): () => void;

Parameters

Parameter Type Description
callback (nextState: S, prevState: S) => any  

Returns:

() => void