79667744

Date: 2025-06-16 13:53:07
Score: 0.5
Natty:
Report link

The error you are seeing is due to interruption in rendering of state in react you can use router inside a non dependency useEffect

useEffect(()=>{

if(!session){

router.push("/login")

},[])

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Aryan Gadhave