Resolve the exhaustive-deps findings and attach cause to the rethrown errors. [skip build]
This commit is contained in:
1 parent
027dbee1f1
commit
634d1e0a0f
12 files changed
+31
-49
No files matched your search
@@ -52,11 +52,9 @@ export function Permissions({ requestClose }: PermissionsProps) {
|
||||
useRecursiveChildScopeFactory(mx, roomToParents),
|
||||
);
|
||||
|
||||
// Combine both spaces and rooms for syncing
|
||||
const allChildren = [...childSpaces, ...childRooms];
|
||||
|
||||
// Calculate which children we can sync to
|
||||
const { syncableChildren, nonSyncableChildren } = useMemo(() => {
|
||||
const allChildren = [...childSpaces, ...childRooms];
|
||||
const syncable: string[] = [];
|
||||
const nonSyncable: { roomId: string; name: string }[] = [];
|
||||
|
||||
@@ -97,7 +95,7 @@ export function Permissions({ requestClose }: PermissionsProps) {
|
||||
});
|
||||
|
||||
return { syncableChildren: syncable, nonSyncableChildren: nonSyncable };
|
||||
}, [allChildren, mx]);
|
||||
}, [childSpaces, childRooms, mx]);
|
||||
|
||||
const [syncState, syncPermissions] = useAsyncCallback(
|
||||
useCallback(async () => {
|
||||
|
||||
Reference in new issue
Block a user