fix: react dependencies

This commit is contained in:
Johannes Lötzsch 2022-03-13 23:53:05 +01:00
parent 9114c0fa03
commit 3e5a367dba
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ export function Login() {
console.log('session expired')
auth.logout()
}
}, [auth.jwt, data])
}, [auth, data])
if(!auth.jwt) {
return (

View File

@ -293,7 +293,7 @@ const HostOfferLookupTable = ({data_ro, data_rw, refetch_rw}: HostOfferLookupTab
/** For now the easiest way to ensure the user can see if data was updated in the db is by calling `refetch_rw()`
TODO: error handling **/
await mutate(auth, {value, columnId, rowId}) && refetch_rw()
}, [dataSource])
}, [auth, refetch_rw])
const {i18n: {language}} = useTranslation()
// @ts-ignore