Next.js Discord

Discord Forum

Hard refresh / reload happening when changing the page

Unanswered
Rule posted this in #help-forum
Open in Discord
Avatar
RuleOP
I'm using pages router and my current pages directory looks like this:
pages
- index.tsx
- customer
- [customerId]
- x.tsx
- y.tsx
- working.tsx

For some reason when clicking any link that should navigate the user to /customer/[customerId]/x or y triggers a hard refresh which makes the _app.tsx file refresh itself too.

Routes such as /working is working completely fine and there is no hard refresh. What could be the issue?

3 Replies

Avatar
Serengeti
Hey @Rule I'm facing a similar problem my local site keeps reloading when I switch tabs and I loose all the app's state
did you manage to find a solution?
Avatar
RuleOP
I didn't find any solution yet.