if (inProgressExecutionInfo.loadingLoadable?.state === 'loading') {
        markStoreWaitingForResolvedAsync(
          store,
          inProgressExecutionInfo.executionID,
        );
      }
Given a tree state, this function returns a Loadable of the current state.

The selector's get() function will only be re-evaluated if _both_ of the
following statements are true:

1. The current dep values from the given state produced a cache key that
   was not found in the cache.
2. There is no currently running async execution OR there is an
   async execution that is running, but after comparing the dep values in
   the given state with the dep values that the execution has discovered so
   far we find that at least one dep value has changed, in which case we
   start a new execution (the previously running execution will continue to
   run to completion, but only the new execution will be deemed the
   'latest' execution, meaning it will be the only execution that will
   update global state when it is finished. Any non-latest executions will
   run to completion and update the selector cache but not global state).