From 694ca2180cc741390c33fa6ec4242ec6d69ce29a Mon Sep 17 00:00:00 2001 From: Gimle Larpes Date: Fri, 13 Feb 2026 11:43:28 +0100 Subject: [PATCH] fix cache in Lobby --- src/app/features/lobby/Lobby.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/features/lobby/Lobby.tsx b/src/app/features/lobby/Lobby.tsx index d51854d4..782c6cd3 100644 --- a/src/app/features/lobby/Lobby.tsx +++ b/src/app/features/lobby/Lobby.tsx @@ -235,9 +235,11 @@ export function Lobby() { // As a subspace can be in multiple spaces, // only return true if all parent spaces are closed. - return !Array.from(parentParentIds).some( + const allClosed = !Array.from(parentParentIds).some( (id) => !getInClosedCategories(spaceId, id, parentId) ); + closedCategoriesCache.current.set(categoryId, allClosed); + return allClosed; }, [closedCategories, getRoom, roomToParents, spaceRooms] );