Remove unnecessary useEffect

This commit is contained in:
0x464e 2026-03-19 23:41:26 +02:00
parent 64dcf77361
commit 75f5177e6b
No known key found for this signature in database
GPG Key ID: E6D221DF6CBFBFFA

View File

@ -145,7 +145,6 @@ export function RecordingView({
? startTime
: timeRange.before - 60,
);
const lastAppliedStartTimeRef = useRef(startTime);
const mainCameraReviewItems = useMemo(
() => reviewItems?.filter((cam) => cam.camera == mainCamera) ?? [],
@ -323,16 +322,6 @@ export function RecordingView({
[currentTimeRange, updateSelectedSegment],
);
useEffect(() => {
if (lastAppliedStartTimeRef.current === startTime) {
return;
}
lastAppliedStartTimeRef.current = startTime;
setPlayerTime(startTime);
manuallySetCurrentTime(startTime);
}, [startTime, manuallySetCurrentTime]);
const onShareReviewLink = useCallback(
(timestamp: number) => {
const reviewUrl = createRecordingReviewUrl(location.pathname, {