Skip to content

Fix infinite spinner when no feature flags are configured

Warren Gifford requested to merge mrn+es/fix-feature-flag-empty into main

Created by: mrnugget

Before this change the feature flags admin page would show a spinner indefinitely if there were no feature flags configured.

@eseliger tracked this down forkJoin apparently blocking when receiving flags that are empty.

So now we check for the length and then either do the old forkJoin or emit flags directly.

Test plan

  • Tested locally by comparing before and after with empty and not-empty feature flags page.

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading