Skip to content

Commit

Permalink
adding ClerkLoaded to the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
domitriusclark committed Jun 25, 2024
1 parent a7ccf9e commit 86386f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useFonts } from "expo-font";
import { Slot } from "expo-router";
import * as SplashScreen from "expo-splash-screen";
import { useEffect } from "react";
import { ClerkProvider } from "@clerk/clerk-expo";
import { ClerkLoaded, ClerkProvider } from "@clerk/clerk-expo";
import { tokenCache } from "@/cache";

// Prevent the splash screen from auto-hiding before asset loading is complete.
Expand Down Expand Up @@ -33,7 +33,9 @@ export default function RootLayout() {

return (
<ClerkProvider tokenCache={tokenCache} publishableKey={publishableKey}>
<Slot />
<ClerkLoaded>
<Slot />
</ClerkLoaded>
</ClerkProvider>
);
}

0 comments on commit 86386f7

Please sign in to comment.