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]);
useEffect(() => {
generateSegments();
// we know that these deps are correct
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [generateSegments, timelineStart, handleMouseUp, handleMouseMove]);
return (
<div
ref={timelineRef}

View File

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