fix: stop connection screens crashing outside the connection log provider

This commit is contained in:
LukeGus
2026-08-19 15:09:17 -05:00
parent 0bef8b99b4
commit a15372a224
3 changed files with 60 additions and 5 deletions
@@ -88,3 +88,9 @@ export function useConnectionLog() {
}
return context;
}
// Loading and error screens render outside any provider, so they get undefined
// instead of a crash.
export function useOptionalConnectionLog() {
return useContext(ConnectionLogContext);
}