@asgardeo/react 0.22.3 → 0.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1318,7 +1318,7 @@ var FlowMetaProvider = ({
|
|
|
1318
1318
|
children,
|
|
1319
1319
|
enabled = true
|
|
1320
1320
|
}) => {
|
|
1321
|
-
const { baseUrl, applicationId, platform } = useAsgardeo_default();
|
|
1321
|
+
const { baseUrl, applicationId, platform, isInitialized } = useAsgardeo_default();
|
|
1322
1322
|
const i18nContext = useI18n_default();
|
|
1323
1323
|
const [meta, setMeta] = (0, import_react10.useState)(null);
|
|
1324
1324
|
const [isLoading, setIsLoading] = (0, import_react10.useState)(true);
|
|
@@ -1331,7 +1331,7 @@ var FlowMetaProvider = ({
|
|
|
1331
1331
|
setIsLoading(false);
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
|
-
if (!applicationId) {
|
|
1334
|
+
if (!isInitialized && !applicationId) {
|
|
1335
1335
|
return;
|
|
1336
1336
|
}
|
|
1337
1337
|
setIsLoading(true);
|
|
@@ -1348,7 +1348,7 @@ var FlowMetaProvider = ({
|
|
|
1348
1348
|
} finally {
|
|
1349
1349
|
setIsLoading(false);
|
|
1350
1350
|
}
|
|
1351
|
-
}, [enabled, platform, baseUrl, applicationId, i18nContext?.currentLanguage]);
|
|
1351
|
+
}, [enabled, platform, baseUrl, applicationId, isInitialized, i18nContext?.currentLanguage]);
|
|
1352
1352
|
const switchLanguage = (0, import_react10.useCallback)(
|
|
1353
1353
|
async (language) => {
|
|
1354
1354
|
if (!enabled || platform !== import_browser10.Platform.AsgardeoV2) return;
|