Composables

useFlagsStatus()

Check initialization status of feature flags.

Returns reactive status information about the feature flag system.

Usage

<template>
  <div v-if="!ready">Loading feature flags...</div>
  <div v-else>{{ flagCount }} flags loaded</div>
</template>

<script setup>
const { ready, flagCount } = useFlagsStatus()
</script>

Type

function useFlagsStatus(): {
  ready: ComputedRef<boolean>
  flagCount: ComputedRef<number>
}

Returns

ready
ComputedRef<boolean>
true after the first successful flag fetch. false if the Unleash proxy is unreachable.
flagCount
ComputedRef<number>
Number of loaded feature flags.
Copyright © 2026