Javascript – Display 404 in NextJS for dynamic route if doesnt exist but otherwise show loading spinner
I have a dynamic route in my NextJS app /team/[id] .... When the page loads it goes off to the API and checks the ID of the team and then returns the information, if the ID doesn't exist on the…