Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getters.js « stores « releases « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6a1da63289c07850e2c1aeb895e269451b53bae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
/**
 * @returns {Boolean} `true` if all the feature flags
 * required to enable the GraphQL endpoint are enabled
 */
export const useGraphQLEndpoint = rootState => {
  return Boolean(
    rootState.featureFlags.graphqlReleaseData &&
      rootState.featureFlags.graphqlReleasesPage &&
      rootState.featureFlags.graphqlMilestoneStats,
  );
};