Defer setRecording and return true from hook for cleanup

This commit is contained in:
0x464e
2026-03-20 21:59:37 +02:00
parent 55a858783c
commit 10ced9195d
+14 -12
View File
@@ -272,19 +272,21 @@ export default function Events() {
...reviewFilter,
...getReviewDayBounds(new Date(reviewLink.timestamp * 1000)),
});
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,
);
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);
return false;
return true;
});
// review paging