Skip to content

Commit 61a0ef3

Browse files
Andrew Farriesroboquat
authored andcommitted
Call initGitPodService in App component
1 parent 0b42fce commit 61a0ef3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/dashboard/src/App.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Login } from "./Login";
1212
import { UserContext } from "./user-context";
1313
import { getSelectedTeamSlug, TeamsContext } from "./teams/teams-context";
1414
import { ThemeContext } from "./theme-context";
15-
import { getGitpodService } from "./service/service";
15+
import { getGitpodService, initGitPodService } from "./service/service";
1616
import { shouldSeeWhatsNew, WhatsNew } from "./whatsnew/WhatsNew";
1717
import gitpodIcon from "./icons/gitpod.svg";
1818
import { 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

Comments
 (0)