Giter Site home page Giter Site logo

Comments (5)

tenghuan123 avatar tenghuan123 commented on September 27, 2024 1

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:
image
image

from next.js.

hypervisor avatar hypervisor commented on September 27, 2024

Can confirm this happens to my app as well, in both dev and prod.

from next.js.

khuezy avatar khuezy commented on September 27, 2024

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.

khuezy avatar khuezy commented on September 27, 2024

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.

vanlooverenkoen avatar vanlooverenkoen commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.