@@ -12,7 +12,7 @@ import { Login } from "./Login";
1212import { UserContext } from "./user-context" ;
1313import { getSelectedTeamSlug , TeamsContext } from "./teams/teams-context" ;
1414import { ThemeContext } from "./theme-context" ;
15- import { getGitpodService } from "./service/service" ;
15+ import { getGitpodService , initGitPodService } from "./service/service" ;
1616import { shouldSeeWhatsNew , WhatsNew } from "./whatsnew/WhatsNew" ;
1717import gitpodIcon from "./icons/gitpod.svg" ;
1818import { ErrorCodes } from "@gitpod/gitpod-protocol/lib/messaging/error" ;
@@ -159,14 +159,18 @@ function App() {
159159 const { user, setUser, refreshUserBillingMode } = useContext ( UserContext ) ;
160160 const { teams, setTeams } = useContext ( TeamsContext ) ;
161161 const { setIsDark } = useContext ( ThemeContext ) ;
162- const { usePublicApiTeamsService } = useContext ( FeatureFlagContext ) ;
162+ const { usePublicApiTeamsService, useSlowDatabase } = useContext ( FeatureFlagContext ) ;
163163
164164 const [ loading , setLoading ] = useState < boolean > ( true ) ;
165165 const [ isWhatsNewShown , setWhatsNewShown ] = useState ( false ) ;
166166 const [ showUserIdePreference , setShowUserIdePreference ] = useState ( false ) ;
167167 const [ isSetupRequired , setSetupRequired ] = useState ( false ) ;
168168 const history = useHistory ( ) ;
169169
170+ useEffect ( ( ) => {
171+ initGitPodService ( useSlowDatabase ) ;
172+ } , [ useSlowDatabase ] ) ;
173+
170174 useEffect ( ( ) => {
171175 ( async ( ) => {
172176 var user : User | undefined ;
0 commit comments