Fix lint errors
Various hooks either missing dependencies or with extra ones. Two remaining errors are from the recapcta code where I can't work out if the extra dependency is intentional or not.
This commit is contained in:
parent
dbef06269b
commit
bf8f164f55
7 changed files with 52 additions and 42 deletions
|
|
@ -223,7 +223,7 @@ export function useSubmitRageshake() {
|
|||
console.error(error);
|
||||
}
|
||||
},
|
||||
[client]
|
||||
[client, json, sending]
|
||||
);
|
||||
|
||||
return {
|
||||
|
|
@ -294,7 +294,7 @@ export function useRageshakeRequestModal(roomId) {
|
|||
return () => {
|
||||
client.removeListener("event", onEvent);
|
||||
};
|
||||
}, [modalState.open, roomId]);
|
||||
}, [modalState.open, roomId, client, modalState]);
|
||||
|
||||
return { modalState, modalProps: { ...modalProps, rageshakeRequestId } };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue