Comments (6)
Hi, did you mean to share a different CodeSandbox? The one you shared is working fine for me.
CleanShot.2024-05-08.at.06.45.37.mp4
from next.js.
I acidentaly fixed the sandbox with someone elses advice. The issue seems to be specific for default.tsx
.
I've reverted the changes so the sandbox is working again.
from next.js.
I acidentaly fixed the sandbox with someone elses advice
How did you accidentally fix it? #50284 is full of ugly workarounds, so maybe your workaround works better than those until this is fixed...
from next.js.
Replacing the default.tsx
with a page.tsx
. It's not a 1 to 1 replacement, as it does not achieve the same functionality. But it fixed the issue on my specific use case.
from next.js.
Glad you got it working! It sounds like the behavior you were running into is expected behavior for default.tsx
, described in a bit more detail here: https://nextjs.org/docs/app/api-reference/file-conventions/default
default.tsx
is only used when the slot is first unmatched (ie, on page load). On soft navigations, whatever was in the slot will remain active, if it doesn't match to a page.tsx
.
from next.js.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
from next.js.
Related Issues (20)
- `no-store` cache in nextjs config doesn't disable disk caching.
- The `maxDuration` setting in the api route config, as per the documentation, isn't being honored on dev or on Vercel. We're on the pro plan. HOT 1
- TypeError: Cannot read properties of undefined (reading 'ReactCurrentOwner') when rendering model using react-three libraries
- next/og don't work when turbo is enabled in dev HOT 1
- Metadata is not generated for intercepting routes HOT 1
- Monorepo self-referencing package imports don't resolve in certain cases with Turbopack
- Creating instance of URL with basePath gets mangled HOT 1
- Creating instance of URL with basePath gets mangled
- Regression since `v14.2.0-canary.24`: `loading.tsx` triggered on first `revalidatePath()` call HOT 2
- Nested parallel routes slot rendered after navigating back HOT 2
- graphql-request and caching HOT 4
- Client side navigation not working properly in latest next@rc for dev HOT 1
- Intercepted route not generating metadata
- `static` Router Cache is used once, the value of `staleTimes.dynamic` is applied the next time. HOT 3
- Nextjs reloads page when i go to not-found page HOT 2
- page arises a error everytime when app republished
- Getting redirected to the copied link unexpectedly. HOT 1
- Modal by parallel routing on slow connection not working. Clicking on Link before hydration causes full reload instead of showing modal HOT 1
- ChunkLoadError: Loading chunk app/layout failed. (timeout: http://localhost:3000/_next/static/chunks/app/layout.js)
- ISR: Cached 404 status never change even if page is not a not-found anymore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.