upgrade to react 19

This commit is contained in:
dswbx
2025-03-11 08:44:49 +01:00
parent 2d7257d2bc
commit 8df30f4dae
11 changed files with 437 additions and 1137 deletions

View File

@@ -41,7 +41,7 @@ export function BkndProvider({
useState<Pick<BkndContext, "version" | "schema" | "config" | "permissions" | "fallback">>();
const [fetched, setFetched] = useState(false);
const [error, setError] = useState<boolean>();
const errorShown = useRef<boolean>();
const errorShown = useRef<boolean>(false);
const fetching = useRef<Fetching>(Fetching.None);
const [local_version, set_local_version] = useState(0);
const api = useApi();