Is there a way to get the name of the state as we onStateChange fallback is depreciated in the lates APi?