fix: add missing react hook dependencies
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -107,7 +107,7 @@ export function BackRouteHandler({ children }: BackRouteHandlerProps) {
|
||||
) {
|
||||
navigate(getInboxPath());
|
||||
}
|
||||
}, [navigate, location]);
|
||||
}, [navigate, location, setLastRoomId]);
|
||||
|
||||
return children(goBack);
|
||||
}
|
||||
@@ -61,7 +61,7 @@ export const useMemberPowerSort = (
|
||||
|
||||
return getPowerLevel(b.userId) - getPowerLevel(a.userId);
|
||||
},
|
||||
[creators]
|
||||
[creators, getPowerLevel]
|
||||
);
|
||||
|
||||
return sort;
|
||||
|
||||
Reference in new issue
Block a user