mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-03 07:12:34 -08:00
fix lint
This commit is contained in:
1 parent
20871c1f16
commit
f7b942b178
1 file changed
+10
-8
@@ -174,10 +174,11 @@ export const useSpaceHierarchy = (
|
||||
|
||||
const [hierarchyKey, setHierarchyKey] = useState(0);
|
||||
|
||||
const hierarchy = useMemo(() => {
|
||||
hierarchyKey;
|
||||
return getSpaceHierarchy(spaceId, spaceRooms, getRoom, excludeRoom, closedCategory);
|
||||
}, [spaceId, spaceRooms, getRoom, closedCategory, excludeRoom, hierarchyKey]);
|
||||
// oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps
|
||||
const hierarchy = useMemo(
|
||||
() => getSpaceHierarchy(spaceId, spaceRooms, getRoom, excludeRoom, closedCategory),
|
||||
[spaceId, spaceRooms, getRoom, closedCategory, excludeRoom, hierarchyKey]
|
||||
);
|
||||
|
||||
useStateEventCallback(
|
||||
mx,
|
||||
@@ -301,10 +302,11 @@ export const useSpaceJoinedHierarchy = (
|
||||
|
||||
const [hierarchyKey, setHierarchyKey] = useState(0);
|
||||
|
||||
const hierarchy = useMemo(() => {
|
||||
hierarchyKey;
|
||||
return getSpaceJoinedHierarchy(spaceId, getRoom, excludeRoom, sortRoomItems);
|
||||
}, [spaceId, getRoom, excludeRoom, sortRoomItems, hierarchyKey]);
|
||||
// oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps
|
||||
const hierarchy = useMemo(
|
||||
() => getSpaceJoinedHierarchy(spaceId, getRoom, excludeRoom, sortRoomItems),
|
||||
[spaceId, getRoom, excludeRoom, sortRoomItems, hierarchyKey]
|
||||
);
|
||||
|
||||
useStateEventCallback(
|
||||
mx,
|
||||
|
||||
Reference in new issue
Block a user