Skip to content

Commit

Permalink
Don't use suspense for i18n (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed May 16, 2022
1 parent 73416ee commit 065fab3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions client/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ i18n
escapeValue: false, // not needed for react as it escapes by default
},

react: {
useSuspense: false,
},

backend: {
loadPath: "/[[lng]]/_yari/[[ns]]",
},
Expand Down
4 changes: 1 addition & 3 deletions client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ const app = (
<UserDataProvider>
<UIProvider>
<Router>
<React.Suspense fallback={null}>
<App {...appData} />
</React.Suspense>
<App {...appData} />
</Router>
</UIProvider>
</UserDataProvider>
Expand Down

0 comments on commit 065fab3

Please sign in to comment.