Files
Nitro_Render_V3/packages/api/src
simoleo89 3ce15e5819 fix(session): invalidate RoomSession snapshot on room-data and permission changes
getActiveRoomSessionSnapshot() caches the frozen snapshot keyed on the session
reference, but RoomDataHandler (tradeMode/groupId/isGuildRoom/doorMode/allowPets)
and RoomPermissionsHandler (controllerLevel/owner) mutate those fields on the
same session object without invalidating the cache. Any consumer reading a
mutable field via useActiveRoomSessionSnapshot would get stale data and never
re-render.

Expose invalidateRoomSessionSnapshot() on IRoomHandlerListener and call it from
both handlers after they mutate the session.
2026-06-13 18:17:17 +02:00
..
🆙 Update
2026-02-05 08:32:02 +01:00
2024-04-03 09:27:56 +02:00
2025-03-09 10:53:31 +01:00
2024-04-03 09:27:56 +02:00