message: Moved suspend into separate function
diff: @@ -32,6 +32,12 @@ class AsyncStateNavigator extends StateNavigator {
  suspendNavigation: (stateContext: StateContext, resumeNavigation: () => void) => void = (_, resumeNavigation) => resumeNavigation(), defer = false) {
  this.stateNavigator.navigateLink(url, historyAction, history, (stateContext, resumeNavigation) => {
  suspendNavigation(stateContext, () => {
  + this.suspendNavigation(stateContext, resumeNavigation, defer);
  + })
  + });
  + }
  +
  + private suspendNavigation(stateContext, resumeNavigation, defer) {
  var { oldState, state, data, asyncData } = stateContext;
  if (defer)
  this.navigationHandler.setState(({ context }) => ({ context: { ...context, nextState: state, nextData: data } }));
  @@ -44,8 +50,6 @@ class AsyncStateNavigator extends StateNavigator {
  resumeNavigation();
  });
  });
  - })
  - });
  }
  }
  export default AsyncStateNavigator;
  \ No newline at end of file
  