clean up deps and remove unneeded useeffect

This commit is contained in:
Josh Hawkins 2024-03-03 13:15:23 -06:00
parent 77b8dcfdef
commit 62fa09ae66
2 changed files with 6 additions and 12 deletions

View File

@ -157,12 +157,6 @@ export function EventReviewTimeline({
} }
}, [isDragging, onHandlebarDraggingChange]); }, [isDragging, onHandlebarDraggingChange]);
useEffect(() => {
generateSegments();
// we know that these deps are correct
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [generateSegments, timelineStart, handleMouseUp, handleMouseMove]);
return ( return (
<div <div
ref={timelineRef} ref={timelineRef}

View File

@ -12,24 +12,24 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
"/api": { "/api": {
target: "http://localhost:5000", target: "http://192.168.5.4:5000",
ws: true, ws: true,
}, },
"/vod": { "/vod": {
target: "http://localhost:5000", target: "http://192.168.5.4:5000",
}, },
"/clips": { "/clips": {
target: "http://localhost:5000", target: "http://192.168.5.4:5000",
}, },
"/exports": { "/exports": {
target: "http://localhost:5000", target: "http://192.168.5.4:5000",
}, },
"/ws": { "/ws": {
target: "ws://localhost:5000", target: "ws://192.168.5.4:5000",
ws: true, ws: true,
}, },
"/live": { "/live": {
target: "ws://localhost:5000", target: "ws://192.168.5.4:5000",
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
}, },