Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Conditional parallel routes in Next.js

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

9 Yorum

henrique ↑% profil fotoğrafı
henrique ↑%2 yıl önce

Amazing!! How apply this with TypeScript? The type of user and admin in props Layout?

Fredkisss is on 🦋 blue sky 🦋 profil fotoğrafı
Fredkisss is on 🦋 blue sky 🦋2 yıl önce

You still need to make sure to add a condition role check in each parallel route because they are still executed even if only one is rendered.

Alex Sidorenko profil fotoğrafı
Alex Sidorenko2 yıl önce

Ah, good catch! Thanks for pointing this out. Looks like a known bug.

Qing | quotion.co profil fotoğrafı
Qing | quotion.co2 yıl önce

Awesome, this is also useful for conditional layout like sidebar, e.g. declare 2 sidebar routes for various scenarios(/site and /team)

moni profil fotoğrafı
moni2 yıl önce

what tool do you use for editing / recording these videos?

chronark — oss/acc profil fotoğrafı
chronark — oss/acc2 yıl önce

well that was incredibly simple to understand, kudos!

Eyk Rehbein profil fotoğrafı
Eyk Rehbein2 yıl önce

Okay now that’s a great advantage compared to the pages router

Umair profil fotoğrafı
Umair2 yıl önce

Which video editor is this?? Alex

Alex Sidorenko profil fotoğrafı
Alex Sidorenko2 yıl önce

@hyeumair This was a combination of Apple Keynote and @Remotion with a custom setup. I spent waaaay too much time on this 😅

Benzer Videolar