fix(library): fixed opening shared books from other apps (#3884)

This commit is contained in:
Huang Xin
2026-04-16 20:46:31 +08:00
committed by GitHub
parent 802212c423
commit 976bbcc152
+3 -2
View File
@@ -430,7 +430,7 @@ const LibraryPageContent = ({ searchParams }: { searchParams: ReadonlyURLSearchP
}
};
const loadingTimeout = setTimeout(() => setLoading(true), 300);
const loadingTimeout = setTimeout(() => setLoading(true), 500);
const initLibrary = async () => {
const appService = await envConfig.getAppService();
const settings = await appService.loadSettings();
@@ -470,8 +470,9 @@ const LibraryPageContent = ({ searchParams }: { searchParams: ReadonlyURLSearchP
setCheckLastOpenBooks(false);
isInitiating.current = false;
};
// searchParams is used to tigger parsing OPEN_WITH_FILES
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [searchParams]);
useEffect(() => {
const group = searchParams?.get('group') || '';