fix(web): recover the home screen when the bundle never runs
This commit is contained in:
@@ -80,6 +80,12 @@ export function useHomeShellRegistration(params: HomeShellRegistrationParams) {
|
||||
visibleSessions,
|
||||
} = params;
|
||||
|
||||
useEffect(() => {
|
||||
// The inline dead-screen script stands down only after the app has revealed.
|
||||
if (!hydrated || typeof document === "undefined") return;
|
||||
document.documentElement.dataset.hydrated = "1";
|
||||
}, [hydrated]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!hydrated || !account) {
|
||||
registerShellControls(null);
|
||||
|
||||
Reference in New Issue
Block a user