message: Removed handler instead of if check
diff: @@ -3484,7 +3484,7 @@ describe('Navigation', function () {
  ]);
  var navigatedOldState, navigatedState, navigatedData, navigatedAsyncData;
  var beforeNavigateHandler = (oldState, state, data, url) => {
  - if (state.key === 's0')
  + stateNavigator.offBeforeNavigate(beforeNavigateHandler);
  stateNavigator.navigate('s1', { s: 'Hello' });
  return true;
  };
  