Skip to content

Commit

Permalink
Make MegaStoreProvider higher in root components
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman authored and futurepaul committed Nov 3, 2023
1 parent 9186986 commit 5d5e309
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,15 @@ export default function Root() {
<Body>
<Suspense>
<ErrorBoundary fallback={(e) => <ErrorDisplay error={e} />}>
<I18nProvider>
<MegaStoreProvider>
<Router />
</MegaStoreProvider>
</I18nProvider>
<MegaStoreProvider>
<I18nProvider>
<ErrorBoundary
fallback={(e) => <ErrorDisplay error={e} />}
>
<Router />
</ErrorBoundary>
</I18nProvider>
</MegaStoreProvider>
</ErrorBoundary>
</Suspense>
<Scripts />
Expand Down

0 comments on commit 5d5e309

Please sign in to comment.