ensure that we regenerate the id when it is still null

This commit is contained in:
Robin Malfait
2021-01-27 00:29:22 +01:00
parent ab820ded09
commit b6212b9d44
@@ -18,8 +18,7 @@ export function useId() {
useIsoMorphicEffect(() => {
if (id === null) setId(generateId())
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}, [id])
React.useEffect(() => {
if (state.serverHandoffComplete === false) state.serverHandoffComplete = true