Comments (3)
Hi @V01D-NULL
I believe this is because your parallel slot is defined at the foo
level, not at the root level. In this case, the parallel route would be passed as a prop to app/foo/layout.tsx
(if it existed), rather than app/layout.tsx
.
If you create a app/foo/layout.tsx
file that looks like this, it should work as you expect!
export default function Layout({ children, modal }) {
return (
<>
{children}
{modal}
</>
);
}
from next.js.
You're right that did help, our production env has this too I must have missed it while creating this poc.
The issue I'm seeing on production is intermittent, sometimes the intercepted renders a modal, sometimes it doesn't. Using just a Link
component for that..
Does this sound familiar at all?
This was my best shot at trying to replicate the behavior I saw, due to the volatile nature of the bug I'm seeing I was unable to create a standalone reproduction
from next.js.
@V01D-NULL I'm afraid it's hard to say without seeing the source. You might be able to debug the behavior a bit better if you add a catch-all slot to your interception route (ie, @slot/[...catchAll]/page.tsx
) as well as a root page (ie @slot/page.tsx
) and have them render some debug code. This might help diagnose if your interception route is being matched to the wrong page component.
from next.js.
Related Issues (20)
- Next.js Compatibility Issues on Chrome 80: Style, useEffect, and Query Problems HOT 2
- Is Middleware need to be cached? HOT 5
- Next throws error when React 19 types (@types/react and @types/react-dom) are installed HOT 2
- Link does not scroll to anchor if it is within Suspense boundary HOT 1
- Link does not scroll to anchor if it is within Suspense boundary
- middleware redirect doesn't change the url on router.refresh() - App Router HOT 1
- next.js >= 14.0.5-canary.59 Fast Refresh had to perform a full reload. HOT 1
- next.js >= 14.0.5-canary.59 Fast Refresh had to perform a full reload HOT 2
- NextNodeServer handleNextImageRequest doens't work as expected with assetPrefix and custom next/image loader
- Returning a string from a page component causes hydration mismatch error HOT 5
- Opentelemetry - Spans for static resources and API pages not part of page load trace
- Enabling `experimental.reactCompiler` causes hydration error when using styled-jsx
- Module not found: Can't resolve '@node-rs/argon2-wasm32-wasi' HOT 2
- __turbopack_resolve_absolute_path__ is not a function HOT 1
- window.history.pushState does not work with transitions HOT 2
- ES Modules may not assign module.exports or exports.*, Use ESM export syntax HOT 1
- Parallel Route Modal closed using router.push cannot open again until hard refresh HOT 2
- "res.status(200).json() is not a function" is this a bug? HOT 3
- next JS 13.0.6 HOT 2
- Component Reinitialization Issue with `loading.tsx` and `revalidateTag` 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.