feat: add realtime with socket.io

This commit is contained in:
Divlo
2022-01-13 18:21:45 +01:00
parent 5c03a9b944
commit 9229131c1a
14 changed files with 1707 additions and 1528 deletions

View File

@ -23,7 +23,9 @@ export const AuthenticationProvider: React.FC<PagePropsWithAuthentication> = (
const authentication = useMemo(() => {
return new Authentication(props.authentication.tokens)
}, [props.authentication.tokens])
// eslint-disable-next-line react-hooks/exhaustive-deps -- We only want to run this memo once
}, [])
useEffect(() => {
setLanguage(user.settings.language).catch(() => {})