fix: eliminate loading screen flash after prestige (#163)
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m6s
CI / Lint, Build & Test (pull_request) Successful in 1m13s

Add reloadSilent which rehydrates state without toggling isLoading,
preventing the game from unmounting and showing the loading screen
after auto- or manual prestige.
This commit is contained in:
2026-03-31 12:35:13 -07:00
committed by Naomi Carrigan
parent b3d257048f
commit 48477ee286
2 changed files with 40 additions and 3 deletions
@@ -84,7 +84,7 @@ const categoryOrder: Array<PrestigeUpgradeCategory> = [
const PrestigePanel = (): JSX.Element => {
const {
state,
reload,
reloadSilent,
formatNumber,
buyPrestigeUpgrade,
enableNotifications,
@@ -141,7 +141,7 @@ const PrestigePanel = (): JSX.Element => {
`You've reached prestige level ${data.newPrestigeCount.toString()}!`,
);
}
await reload();
await reloadSilent();
} catch (error_: unknown) {
setPrestigeError(
error_ instanceof Error