Next.js 11 – Axios api call triggering 2 times when page loads
I have been trying to migrate a React.js CRA to Next.js SSR Application, I moved specifically to Next.js 11 as I have some package deps which support only up Next.js 11, as my CRA application is working perfect, but when I moved all my project files to Next.js 11, all my API calls are triggering 2 times when I visit the page, I’m using react 16 and axios to fetch data from my backend, please help me to fix this issue :