Next.js Discord

Discord Forum

The provided `href` value is missing query values (test)

Answered
French Lop posted this in #help-forum
Open in Discord
French LopOP
I am getting this error. i am using next js 13.2.3 with page router.
i am just setting bare skeleton
import React from 'react';

type Props = {};

function index({}: Props) {
  return <div className="text-white">hello world</div>;
}

export default index;


this error only comes when i refresh the page. I tried looking onto some similar issues online but i am not using any Link or anchor tag. All functionalities works under the hood.
Answered by French Lop
Okay that was small mistake from my side
on the _app.tsx i was adding
useEffect(()=>{
      router.push(`?orgID=${orgID}`);
},[])

which caused router to push this every time route is rendered.
View full answer

1 Reply

French LopOP
Okay that was small mistake from my side
on the _app.tsx i was adding
useEffect(()=>{
      router.push(`?orgID=${orgID}`);
},[])

which caused router to push this every time route is rendered.
Answer