Загрузка видео...
Не удалось загрузить видео
Conditional parallel routes in Next.js
108,935 просмотров • 2 лет назад •via X (Twitter)
Комментарии: 9

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

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.

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

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

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

well that was incredibly simple to understand, kudos!

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

Which video editor is this?? Alex

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