Reactjs – Nextjs useEffect fired twice with searchParams deps
I have a next code: useEffect(() => { doSearch(); console.log(searchParams). }, [searchParams]); doSearch function fired twice because useEffect also fired twice. im sure that i dont change searchParams Components looks like export default function SearchComponent({ params, searchParams }) { useEffect(()…