isFeatureEnabled

Checks whether a feature is currently enabled as a Compose State.

This composable function returns a State that automatically updates when the feature's enabled status changes. It uses isFeatureEnabledFlow internally and collects it as lifecycle-aware state.

The initial value is determined from the registered feature's default state, or false if the feature is not found.

Return

A State object emitting the current enabled state of the feature

Parameters

featureName

The name of the feature to check