@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/index.js CHANGED
@@ -1187,7 +1187,7 @@ var FlowMetaProvider = ({
1187
1187
  children,
1188
1188
  enabled = true
1189
1189
  }) => {
1190
- const { baseUrl, applicationId, platform } = useAsgardeo_default();
1190
+ const { baseUrl, applicationId, platform, isInitialized } = useAsgardeo_default();
1191
1191
  const i18nContext = useI18n_default();
1192
1192
  const [meta, setMeta] = useState3(null);
1193
1193
  const [isLoading, setIsLoading] = useState3(true);
@@ -1200,7 +1200,7 @@ var FlowMetaProvider = ({
1200
1200
  setIsLoading(false);
1201
1201
  return;
1202
1202
  }
1203
- if (!applicationId) {
1203
+ if (!isInitialized && !applicationId) {
1204
1204
  return;
1205
1205
  }
1206
1206
  setIsLoading(true);
@@ -1217,7 +1217,7 @@ var FlowMetaProvider = ({
1217
1217
  } finally {
1218
1218
  setIsLoading(false);
1219
1219
  }
1220
- }, [enabled, platform, baseUrl, applicationId, i18nContext?.currentLanguage]);
1220
+ }, [enabled, platform, baseUrl, applicationId, isInitialized, i18nContext?.currentLanguage]);
1221
1221
  const switchLanguage = useCallback3(
1222
1222
  async (language) => {
1223
1223
  if (!enabled || platform !== Platform2.AsgardeoV2) return;