fix(buffer): live counter

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-02-11 21:38:26 +01:00
parent 848f475412
commit 3205ea0a31
6 changed files with 56 additions and 18 deletions

View File

@@ -39,7 +39,7 @@ export default function useWS<T>(
onMessage(event) {
try {
const data = getSuperJson<T>(event.data);
if (data) {
if (data !== null && data !== undefined) {
debouncedOnMessage(data);
}
} catch (error) {