We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453dad3 commit e4eedc9Copy full SHA for e4eedc9
src/AzureAppConfigurationImpl.ts
@@ -446,12 +446,23 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
446
this.#client,
447
listOptions
448
).byPage();
449
+
450
+ let pageCount = 0;
451
for await (const page of pageIterator) {
452
if (page._response.status === 200) { // created or changed
453
needRefresh = true;
454
break;
455
}
- // TODO: handle page deleted?
456
+ // unchanged, check next page
457
+ pageCount++;
458
+ }
459
460
+ if (pageCount !== selector.pageEtags?.length) {
461
+ needRefresh = true; // page count changed indicating feature flags are added or deleted
462
463
464
+ if (needRefresh) {
465
+ break; // short-circuit if result from any of the selectors is changed
466
467
468
0 commit comments