Next.js Discord

Discord Forum

App router vs Page Router

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Regarding Next.js's app router, would anyone happen to know why I could possibly be getting a rendering issue with an absolute element attached to my navigation links? Issue doesn't occur when using the page router, only present with app router, which I assume has something to do with the combination of RSC and CSC's

4 Replies

Brown bearOP
any advice on this would be appreciated 🙂
@joulev This should be a css issue, app/pages router or server/client components don’t matter too much. Give us a reproduction repository
Brown bearOP
relevant reproduction code;

https://pastecord.com/otofozawas.js - navigation component;

TLDR absolute element works fine when switching routes(animates as expected), but on initial page load it has a really weird loading-in transition;