title: Unwanted page refresh with webpack5 in next js
body: <p>When I turn on webpack5 and call internal api(/api/*) from page after first render, the page refreshes and logs Refreshing page data due to server-side change. after refreshing once, it works fine as webpack4.</p>
  <p>Expected Behavior
  The page should not refresh on api call after first render.</p>