Remove timeout defer hack in favor of refactored hook

This commit is contained in:
0x464e
2026-03-25 00:54:28 +02:00
parent da877214d5
commit 025018dd98
+11 -13
View File
@@ -272,19 +272,17 @@ export default function Events() {
...reviewFilter,
...getReviewDayBounds(new Date(reviewLink.timestamp * 1000)),
});
globalThis.setTimeout(() => {
setRecording(
{
camera: reviewLink.camera,
startTime: reviewLink.timestamp,
// severity not actually applicable here, but the type requires it
// this pattern is also used LiveCameraView to enter recording view
severity: "alert",
timelineType: notificationTab,
},
true,
);
}, 0);
setRecording(
{
camera: reviewLink.camera,
startTime: reviewLink.timestamp,
// severity not actually applicable here, but the type requires it
// this pattern is also used LiveCameraView to enter recording view
severity: "alert",
timelineType: notificationTab,
},
true,
);
return true;
});