Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Modal with intercepting route in Next.js 13

161,725 görüntüleme • 2 yıl önce •via X (Twitter)

9 Yorum

Haz profil fotoğrafı
Haz2 yıl önce

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

Alexander Kachkaev profil fotoğrafı
Alexander Kachkaev2 yıl önce

@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 profil fotoğrafı
Sidi jeddou2 yıl önce

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 profil fotoğrafı
Mattèo2 yıl önce

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 profil fotoğrafı
Alex Sidorenko2 yıl önce

Apple Keynote with Magic move

Arghya Das profil fotoğrafı
Arghya Das2 yıl önce

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 profil fotoğrafı
Aaron2 yıl önce

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

MONARCH profil fotoğrafı
MONARCH2 yıl önce

This is so confusing

Luca Matteis profil fotoğrafı
Luca Matteis2 yıl önce

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

Benzer Videolar