code: function getLocationInStore(useInitialIfEmpty) {
      var locationState = selectLocationState(store.getState());
      return locationState.locationBeforeTransitions || (useInitialIfEmpty ? initialLocation : undefined);
    }
docs: What does the store say about current location?