skip to Main Content

Javascript – e.close is not a function in useEffect

have this code: useEffect(() => { const redirectedFromRegister = sessionStorage.getItem("redirectedFlag") === "yes"; if (!redirectedFromRegister) redirect("/"); }, []); useEffect(() => { const changeRouteTimeout: NodeJS.Timeout = setTimeout(() => { sessionStorage.removeItem("redirectedFlag"); redirect("/trainees"); }, 7500); return () => { clearTimeout(changeRouteTimeout); }; }, []); and…

VIEW QUESTION
Back To Top
Search