Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Conditional parallel routes in Next.js

108,935 Aufrufe • vor 2 Jahren •via X (Twitter)

9 Kommentare

Profilbild von henrique ↑%
henrique ↑%vor 2 Jahren

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

Profilbild von Fredkisss is on 🦋 blue sky 🦋
Fredkisss is on 🦋 blue sky 🦋vor 2 Jahren

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.

Profilbild von Alex Sidorenko
Alex Sidorenkovor 2 Jahren

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

Profilbild von Qing | quotion.co
Qing | quotion.covor 2 Jahren

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

Profilbild von moni
monivor 2 Jahren

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

Profilbild von chronark — oss/acc
chronark — oss/accvor 2 Jahren

well that was incredibly simple to understand, kudos!

Profilbild von Eyk Rehbein
Eyk Rehbeinvor 2 Jahren

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

Profilbild von Umair
Umairvor 2 Jahren

Which video editor is this?? Alex

Profilbild von Alex Sidorenko
Alex Sidorenkovor 2 Jahren

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

Ähnliche Videos