正在加载视频...

视频加载失败

Modal with intercepting route in Next.js 13

161,742 次观看 • 3 年前 •via X (Twitter)

9 条评论

Haz 的头像
Haz3 年前

That would be much easier if I could express that logic in code rather than using file conventions.

Alexander Kachkaev 的头像
Alexander Kachkaev3 年前

@rauchg Sadly, intercepting routes don’t currently work if you need modals only on some pages. For example, you want previous and next product to not be opened in a modal, while you are on a product page. I shared a reproduction in – hope this will be fixed soon!

Sidi jeddou 的头像
Sidi jeddou3 年前

I implemented something like this, but doesn’t use the query, it changes the url param without reloading and shows a modal with data, exactly like product hunt. It’s open source btw.

Mattèo 的头像
Mattèo3 年前

Hey @asidorenko_ I see a lot of your tweets about RSC in my TL, the rendering of the videos is nice, how do you animate the source code on the left side?

Alex Sidorenko 的头像
Alex Sidorenko3 年前

Apple Keynote with Magic move

Arghya Das 的头像
Arghya Das3 年前

Could you please explain the process of creating this video showcasing code transitions? I'm considering sharing something similar with my project and would appreciate understanding how it's done.

Aaron 的头像
Aaron3 年前

This is awesome!! how do you make videos like this?

MONARCH 的头像
MONARCH3 年前

This is so confusing

Luca Matteis 的头像
Luca Matteis3 年前

Just a note. Intercept is only needed if you want an entirely different page on refresh of the modal. If you just want the same modal, parallel routes can be enough

相关视频