Загрузка видео...

Не удалось загрузить видео

На главную

Conditional parallel routes in Next.js

108,935 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 9

Фото профиля henrique ↑%
henrique ↑%2 лет назад

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

Фото профиля Fredkisss is on 🦋 blue sky 🦋
Fredkisss is on 🦋 blue sky 🦋2 лет назад

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
Alex Sidorenko2 лет назад

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

Фото профиля Qing | quotion.co
Qing | quotion.co2 лет назад

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

Фото профиля moni
moni2 лет назад

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

Фото профиля chronark — oss/acc
chronark — oss/acc2 лет назад

well that was incredibly simple to understand, kudos!

Фото профиля Eyk Rehbein
Eyk Rehbein2 лет назад

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

Фото профиля Umair
Umair2 лет назад

Which video editor is this?? Alex

Фото профиля Alex Sidorenko
Alex Sidorenko2 лет назад

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

Похожие видео