You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Use Azure App Configuration to dynamically control the state of the feature flag
134
+
135
+
Azure App Configuration is not only a solution to externalize storage and centralized management of your feature flags, but also it allows to dynamically turn on/off the feature flags.
136
+
137
+
To enable the dynamic refresh for feature flags, you need to configure the `refresh` property of `featureFlagOptions` when loading feature flags from Azure App Configuration.
You need to call the `refresh` method to get the latest feature flag state.
155
+
156
+
```typescript
157
+
awaitappConfig.refresh(); // Refresh to get the latest feature flag settings
158
+
const isBetaEnabled =awaitfm.isEnabled("Beta");
159
+
console.log(`Beta is enabled: ${isBetaEnabled}`);
160
+
```
161
+
133
162
> [!NOTE]
134
163
> For more information about how to use feature management library with Azure App Configuration, please go to the [quickstart](./quickstart-javascript.md).
0 commit comments