Comments (5)
I am having the same issue on 我在
14.2.4
My flow goes like this我的流程是这样的
- page A 页面 A
- modal 资本
- page B B页
(When going back it should look like this)(回去时,它应该看起来像这样)
- page B B页
- modal 资本
- page A 页面 A
This is what I get:这是我得到的:
- page B B页
- modal 资本
- page a (but modal is still shown and not removed from the UI)页面 a(但模式仍显示,并且未从 UI 中删除)
Screen.Recording.2024-07-02.at.14.15.14.mov
You need to add [... catchAll] to capture what UI should be displayed when the user leaves the interceptor route. Just like this:
from next.js.
Can confirm this happens to my app as well, in both dev and prod.
from next.js.
Related, when using <Link />
to link to base of the modal, the modal still persists when it should be destroyed instead.
eg /photos/A
, then use Link
to go to /photos
, the route changes but the modal is still there.
from next.js.
Try duplicating default.tsx
and rename duplicated file to page.tsx
for each @modal
folder. That should clear the modal when you go back to the root of each intercepted folder.
from next.js.
I am having the same issue on 14.2.4
My flow goes like this
- page A
- modal
- page B
(When going back it should look like this)
- page B
- modal
- page A
This is what I get:
- page B
- modal
- page a (but modal is still shown and not removed from the UI)
Screen.Recording.2024-07-02.at.14.15.14.mov
from next.js.
Related Issues (20)
- Docs: Import React from "react" not added on the manual installation HOT 3
- Cache-Control is not appended to Dynamic Routing in Next.js 14.2.12 HOT 4
- Redirect function in server action ignores "replace" parameter HOT 1
- Refused to apply style from '/_next/static/css/336e4aea61098b4e.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. HOT 1
- Cookies being set with empty values in production in Next.js HOT 1
- Docs:
- Error: Failed to find Server Action "84c...c2". This request might be from an older or newer deployment. Original error: Cannot read properties of undefined (reading 'workers')
- Next 14.2.12 with react-pdf and pdfjs-dist | Build fails with webpack error: TypeError: Promise.withResolvers is not a function | Passes Vercel build with swcMinify: false HOT 2
- Remove `@opentelemetry/api` from edge bundle when telemetry is disabled HOT 1
- next config output="export" with appDir doesn't work HOT 2
- Headers function causing an empty page to be returned when using Optional Catch-all Segments HOT 3
- Module not found: Can't resolve '_http_common' HOT 2
- WebGL client component only renders when running "npm run dev" and not with "npm start" HOT 2
- Deprecated meta tag "apple-mobile-web-app-capable" HOT 1
- Next.js does not pick the correct export of dependency HOT 2
- Docs: HOT 1
- req.signal.onabort doesn’t work in Vercel function HOT 1
- Add support for Infinity in experimental/staleTimes HOT 1
- <Link/> sometime stop working with app router in production HOT 1
- Get garbled code in Server actions if formdata contains not latin1 characters HOT 2
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.