From e1ed111c557877ac99c40779a53a0de2d8d46bc0 Mon Sep 17 00:00:00 2001 From: sanjidarimi Date: Wed, 17 Jun 2026 20:31:27 +0600 Subject: [PATCH] fix(not-found):remove unused useEffect that polutted client logs --- src/pages/NotFound.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx index 1b30452..c0f5739 100644 --- a/src/pages/NotFound.tsx +++ b/src/pages/NotFound.tsx @@ -1,18 +1,13 @@ -import { Link, useLocation } from "react-router-dom"; -import { useEffect } from "react"; +import { Link } from "react-router-dom"; const NotFound = () => { - const location = useLocation(); - - useEffect(() => { - console.error("404 Error: User attempted to access non-existent route:", location.pathname); - }, [location.pathname]); - return (

404

-

Oops! Page not found

+

+ Oops! Page not found +

Return to Home