Banner Component in Main layout.tsx Gets Re-rendered on Link Navigation #78065
Unanswered
nileriver2323
asked this question in
App Router
Replies: 1 comment 1 reply
-
what's inside? a call to cookies, headers? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a banner component in my main layout file (src/app/layout.tsx). Sometimes when I click on a Link component I see that it gets re-rendered (the useEffect gets triggered if I make it a client component, and the console.log gets called if I make it an RSC). This doesn't happen with every Link I click on. Any idea why this may be happening?
Sudo code:
Beta Was this translation helpful? Give feedback.
All reactions