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
// this call s not blocking, the configuration will be updated asynchronously
210
+
```
211
+
212
+
Settingup`refreshOptions`alonewon't automatically refresh the configuration. You need to call the `refresh` method on `AzureAppConfiguration` instance returned by the `load` method to trigger a refresh.
213
+
214
+
``` typescript
215
+
// this call is not blocking, the configuration will be updated asynchronously
210
216
settings.refresh();
211
217
```
212
218
213
-
Settingup`refreshOptions`alonewon't automatically refresh the configuration. You need to call the `refresh` method on `AzureAppConfiguration` instance returned by the `load` method to trigger a refresh. This design prevents unnecessary requests to App Configuration when your application is idle. You should include the `refresh` call where your application activity occurs. This is known as **activity-driven configuration refresh**. For example, you can call `refresh` when processing an incoming request or inside an iteration where you perform a complex task. Calling `refresh` is a no-op before the configured refresh interval elapses, so its performance impact is minimal even if it'scalledfrequently.
0 commit comments