summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/releases/stores/getters.js
blob: 2a06f398e26a196e5685918058be1c5bb2d0b2de (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,
  );
};