afterStateChange

This function will set an action that will be invoked when the state has changed and transition is complete. This will be invoked after onEntry and onExit handlers.