Skip to content

Commit

Permalink
Fix infinite loop issue due to suspense in provider
Browse files Browse the repository at this point in the history
  • Loading branch information
0xi4o committed Aug 13, 2024
1 parent 07e5ccd commit 11aad9e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/lib/providers/aurelius.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ const AureliusProvider = ({ children }: AureliusProviderProps) => {
}

return (
<Suspense fallback={<LoadingScreen />}>
<AureliusContext.Provider value={data}>
{children}
</AureliusContext.Provider>
</Suspense>
<AureliusContext.Provider value={data}>
{children}
</AureliusContext.Provider>
)
}

Expand Down

0 comments on commit 11aad9e

Please sign in to comment.