Move ToolDock above auth gate to prevent tool window wipe on navigation

Fixkamo-internal
Navios
11 de março de 2026 às 17:27 UTC
Autor
kamo
Enviar
18dbcc4

PresenceWrapper switches its component tree structure when auth resolves (Fragment > children → ChatWebSocketProvider > PresenceProvider > children). This unmounts/remounts children including AuthenticatedToolWrapper, which resets hasEverAuthRef and briefly returns null, unmounting ToolDock and destroying all ChatTool/SoftphoneTool instances. Fix: render ToolDock directly inside ToolWindowsProvider (in ToolProviders), above PresenceWrapper. ToolDock reads windows from context (which never resets), so tool component instances now outlive any auth-state tree switches and all page navigations.

Todas as alterações

Como o que vês no transporte?

Cada uma dessas atualizações pousa automaticamente em seu espaço de trabalho. Comece grátis e veja crescer semana após semana.

Começar Livre Para SempreVer Preços