feat(FavPlayersPage): cache

This commit is contained in:
kyuuseiryuu 2026-03-09 17:52:40 +09:00
parent d0aee38df8
commit 06665f3371

View File

@ -26,7 +26,8 @@ export function FavePlayersPage() {
const res = await fetch(`/api/fav/${aud}`);
const data = await res.json();
return data;
}, { manual: true });
}, { manual: true, cacheKey: 'favListRequest', cacheTime: 3 * 60 * 1000 });
const list = useMemo(() => {
const l = showType === ShowType.LOCAL ? localList : favListRequest.data?.map(e => ({
...e,