From b448c81e3129c79cb3607a86851caa39c65f183c Mon Sep 17 00:00:00 2001 From: shiminc Date: Sun, 16 Jun 2024 11:16:26 +0100 Subject: [PATCH] note to add remove for useEffect for session --- frontend/src/components/Sessions.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Sessions.jsx b/frontend/src/components/Sessions.jsx index 968c1d2..ef9a9cb 100644 --- a/frontend/src/components/Sessions.jsx +++ b/frontend/src/components/Sessions.jsx @@ -23,7 +23,7 @@ function Sessions() { // Get sessions asynchronously (in the background) useEffect(() => { fetchSessions(); - }); + });//TODO: need to add REMOVE so it won't keep requesting from the backend // Render a drop-down list of session names return (<>{sessions})