Rewrites and _app rendering twice on load

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/nextjs

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • nextjs-rewrite-test

    I noticed while looking at the profiler the other day that all of our pages were rendering twice on initial load. Then saw that _app component was doing the same. Going backwards, I saw that rewrites in config were causing this. I was able to observe the same behavior on a brand new project, https://github.com/ardaerzin/nextjs-rewrite-test, I created with npx create-next-app. The moment I add rewrites, _app starts rendering twice.

  • why-did-you-render

    why-did-you-render by Welldone Software monkey patches React to notify you about potentially avoidable re-renders. (Works with React Native as well.)

    Only on Build process or on the actual page ? And do you check rendering with https://github.com/welldone-software/why-did-you-render

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts