perf: 页面切换零延迟渲染、消除动态 chunk 加载白屏与二次 loading 闪烁、重构微滑淡入过渡
TallyNote release / linux-x64 (push) Failing after 9m14s

This commit is contained in:
Qiufeng
2026-09-04 17:29:52 +08:00
parent db37406498
commit 32f768c8ee
6 changed files with 36 additions and 20 deletions
+6 -1
View File
@@ -1,3 +1,6 @@
// In-memory cache across page transitions for zero-latency instant rendering
let updateInfoCache: any = null;
import { BeamLoading, BeamBar } from "../../components/BeamLoading";
import { useState, useEffect, useRef, useMemo, type ReactNode } from "react";
import {
@@ -302,7 +305,9 @@ export default function UpdatePage({
setLoading(true);
setError("");
try {
setLiveInfo(await api<UpdateInfo>("/api/update/status"));
const res = await api<UpdateInfo>("/api/update/status");
setLiveInfo(res);
updateInfoCache = res;
} catch (e) {
setError((e as Error).message);
} finally {