Something went wrong while fetching comments. Please try again.
Created by: erzhtor
Part 2 of https://github.com/sourcegraph/sourcegraph/issues/35543. Follow-up https://github.com/sourcegraph/sourcegraph/pull/35531.
There are cases when initial calls to the FeatureFlagClient
instance happen before the fetch request (which is called in the constructor) completes. This PR:
useFeatureFlag
to use useObservableWithStatus
withFeatureFlag
to allow rendering two components (when flag=true and when flag=false) and adds unit tests toCheck out the client app preview documentation to learn more.