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
No known key found for this signature in database
GPG Key ID: E6D221DF6CBFBFFA

View File

@ -272,6 +272,7 @@ export default function Events() {
...reviewFilter,
...getReviewDayBounds(new Date(reviewLink.timestamp * 1000)),
});
globalThis.setTimeout(() => {
setRecording(
{
camera: reviewLink.camera,
@ -283,8 +284,9 @@ export default function Events() {
},
true,
);
}, 0);
return false;
return true;
});
// review paging