Remove Suspense from root-providers and refine route checks

The Suspense wrapper was removed from root-providers.tsx to simplify code. For the Privacy Path Checking, a property was added to 'AuthRedirectListener' to allow customization of 'privatePathPrefixes', and the prefixes list was moved to the top. Also, explicit constant assertions were added in 'create-i18n-settings.ts' to ensure the types correctness.
This commit is contained in:
giancarlo
2024-04-21 19:53:16 +08:00
parent ae10f7b142
commit 7cbbae9fef
3 changed files with 27 additions and 30 deletions

View File

@@ -21,9 +21,9 @@ export function createI18nSettings({
fallbackLng: languages[0],
detection: undefined,
lng,
load: 'languageOnly',
preload: false,
lowerCaseLng: true,
load: 'languageOnly' as const,
preload: false as const,
lowerCaseLng: true as const,
fallbackNS: ns,
ns,
react: {