fix: move cabinet_branding to sessionStorage and add WebGL availability check

- Branding cache moved from localStorage to sessionStorage so it clears
  when the mini-app is closed, preventing stale names after admin updates
- Added initialDataUpdatedAt: 0 to all branding queries so fresh data is
  always fetched on page refresh while showing cached data instantly
- One-time migration moves existing localStorage value to sessionStorage
- Aurora component now checks WebGL availability upfront, skipping all
  hooks and subscriptions when WebGL is not supported
This commit is contained in:
Fringg
2026-02-16 07:25:06 +03:00
parent 54f1483312
commit fc7ee6abfe
6 changed files with 40 additions and 6 deletions

View File

@@ -27,6 +27,7 @@ export function useBranding() {
return data;
},
initialData: getCachedBranding() ?? undefined,
initialDataUpdatedAt: 0,
staleTime: 60000,
enabled: isAuthenticated,
});