Next.js Discord

Discord Forum

<Link> component not working after button click since migrating to App Router

Answered
Ragdoll posted this in #help-forum
Open in Discord
RagdollOP
Hi,

After you click on a HTML button to e.g. save settings, the <Link> components do not react to clicks anymore. After a refresh, all is good again.

This started happening when using the App Router.

Has anyone else noticed this behaviour too?
Answered by Ragdoll
Nvm - it was related to a setState loop after clicking one button, which then refreshed data causing one component to experience a setState loop.
View full answer

1 Reply

RagdollOP
Nvm - it was related to a setState loop after clicking one button, which then refreshed data causing one component to experience a setState loop.
Answer