Resolve the exhaustive-deps findings and attach cause to the rethrown errors. [skip build]
Checks / checks (push) Successful in 2m7s
Trigger cinny-mobile / dispatch (push) Successful in 2s

This commit is contained in:
litruv committed 2026-11-01 23:04:36 +11:00
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 () => {