Skip to content

Commit c164fe7

Browse files
SebLevDevdunglassoyuka
authored
Fix infinite Loading progress on React 19 (#599)
* Fix infinite Loading progress on React 19 Closes issue #598- Fix infinite Loading progress on React 19 * use JSX Co-authored-by: Kévin Dunglas <kevin@dunglas.fr> * cs --------- Co-authored-by: Kévin Dunglas <kevin@dunglas.fr> Co-authored-by: soyuka <soyuka@users.noreply.github.com>
1 parent ef9703a commit c164fe7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/AdminGuesser.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useEffect, useMemo, useState } from 'react';
22
import {
33
AdminContext,
4+
Loading,
45
defaultI18nProvider,
56
/* tree-shaking no-side-effects-when-called */ localStorageStore,
67
} from 'react-admin';
@@ -95,6 +96,10 @@ const AdminGuesser = ({
9596
[setLoading, setIntrospect],
9697
);
9798

99+
if (loading) {
100+
return <Loading />;
101+
}
102+
98103
return (
99104
<AdminContext
100105
i18nProvider={i18nProvider}

0 commit comments

Comments
 (0)