mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-01-29 01:28:29 +00:00
wrap lobby add space room in callback hook
This commit is contained in:
parent
b7d700ffc6
commit
81c47f631e
|
@ -325,7 +325,10 @@ export function Lobby() {
|
|||
)
|
||||
);
|
||||
|
||||
const addSpaceRoom = (roomId: string) => setSpaceRooms({ type: 'PUT', roomId });
|
||||
const addSpaceRoom = useCallback(
|
||||
(roomId: string) => setSpaceRooms({ type: 'PUT', roomId }),
|
||||
[setSpaceRooms]
|
||||
);
|
||||
|
||||
const handleCategoryClick = useCategoryHandler(setClosedCategories, (categoryId) =>
|
||||
closedCategories.has(categoryId)
|
||||
|
|
Loading…
Reference in a new issue