Next.js Discord

Discord Forum

next/link routing painfully slow, to the point where dev environment is unusable.

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
I have a navbar that has a map of links:
{data?.map((c, k) => (
                <Link href={`/category/${c}`} key={k}>
                    {c}
                </Link>
            ))}

2 Replies

Brown bearOP
Not sure why but these are the only link that are slow/do not push
Initial compiles in dev can be a little slow sometimes. But you can try to comment out/remove components until you find which one is causing the slow downs.