nextjs - page load acting weird and loads multiple times

 

The solution is basically turn on react restrict mode in the next.config.js.


const nextConfig = {
    experimental: {
        //outputStandalone: true,
        serverActions: true,
    },
    reactStrictMode: true,
}

To read more about react restricted mode here: https://refine.dev/blog/react-strict-mode-in-react-18/#what-is-react-strict-mode


Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm