withNetworkCompletionDispatch function

String withNetworkCompletionDispatch(
  1. Store store,
  2. APIAction action
)

Implementation

String withNetworkCompletionDispatch(Store store, APIAction action) {
  var networkCompletionKey = getRandString(10);
  action.setNetworkCompletionKey(networkCompletionKey);
  store.dispatch(action);
  return networkCompletionKey;
}