refactor: simplify messages

This commit is contained in:
Carlos Valente
2025-08-11 05:50:09 +02:00
committed by Carlos Valente
parent ae061cb69a
commit 54f07c4330
5 changed files with 8 additions and 19 deletions
+2 -10
View File
@@ -142,16 +142,8 @@ export const connectSocket = () => {
break;
}
case MessageTag.RuntimeData: {
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- removing the key from the payload
const { ping, ...serverPayload } = payload;
patchRuntime(serverPayload);
updateDevTools(serverPayload);
break;
}
case MessageTag.RuntimePatch: {
const patch = payload;
patchRuntime(patch);
updateDevTools(patch);
patchRuntime(payload);
updateDevTools(payload);
break;
}
case MessageTag.Refetch: {