We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5560890 commit 0c328dfCopy full SHA for 0c328df
2 files changed
packages/react-ui/src/app/common/guards/intial-data-guard.tsx
@@ -11,7 +11,6 @@ export const InitialDataGuard = ({
11
children,
12
}: Readonly<InitialDataGuardProps>) => {
13
const { data: flags } = flagsHooks.useFlags();
14
- flagsHooks.prefetchFlags();
15
16
useEffect(() => {
17
if (!flags) {
packages/react-ui/src/app/common/hooks/flags-hooks.ts
@@ -29,14 +29,6 @@ type WebsiteBrand = {
29
};
30
31
export const flagsHooks = {
32
- prefetchFlags: () => {
33
- // eslint-disable-next-line react-hooks/rules-of-hooks
34
- usePrefetchQuery<FlagsMap, Error>({
35
- queryKey: [QueryKeys.flags],
36
- queryFn: flagsApi.getAll,
37
- staleTime: Infinity,
38
- });
39
- },
40
useFlags: () => {
41
return useSuspenseQuery<FlagsMap, Error>({
42
queryKey: [QueryKeys.flags],
0 commit comments