您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

actions.native.js 516B

12345678910111213141516171819202122
  1. import { batch } from 'react-redux';
  2. import { appNavigate } from '../app/actions';
  3. import { hideLobbyScreen, setKnockingState } from './actions.any';
  4. export * from './actions.any';
  5. /**
  6. * Cancels the ongoing knocking and abandons the join flow.
  7. *
  8. * @returns {Function}
  9. */
  10. export function cancelKnocking() {
  11. return dispatch => {
  12. batch(() => {
  13. dispatch(setKnockingState(false));
  14. dispatch(hideLobbyScreen());
  15. dispatch(appNavigate(undefined));
  16. });
  17. };
  18. }