message: Waited for custom resume before setting state
diff: @@ -25,11 +25,13 @@ class AsyncStateNavigator extends StateNavigator {
  var url = this.getNavigationLink(stateKey, navigationData);
  if (url == null)
  throw new Error('Invalid route data, a mandatory route parameter has not been supplied a value');
  - this.navigateLink(url, historyAction, false, defer);
  + this.navigateLink(url, historyAction, false, undefined, defer);
  }
  - navigateLink(url: string, historyAction: 'add' | 'replace' | 'none' = 'add', history = false, suspendNavigation, defer = false) {
  + navigateLink(url: string, historyAction: 'add' | 'replace' | 'none' = 'add', history = false,
  + suspendNavigation: (stateContext: StateContext, resumeNavigation: () => void) => void = (_, resumeNavigation) => resumeNavigation(), defer = false) {
  this.stateNavigator.navigateLink(url, historyAction, history, (stateContext, resumeNavigation) => {
  + suspendNavigation(stateContext, () => {
  var { oldState, state, data, asyncData } = stateContext;
  if (defer)
  this.navigationHandler.setState(({ context }) => ({ context: { ...context, nextState: state, nextData: data } }));
  @@ -42,6 +44,7 @@ class AsyncStateNavigator extends StateNavigator {
  resumeNavigation();
  });
  });
  + })
  });
  }
  }
  