Тёмный

How to Use NextJS 13 Link and useRouter Like a Pro 

Brett Westwood - Software Engineer
Подписаться 9 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@C-Raph
@C-Raph 7 месяцев назад
Man thank youuuuu🥺🥺 I've been battling an error with useRouter but this really helped
@brettwestwooddeveloper
@brettwestwooddeveloper 7 месяцев назад
No problem! Glad I could help you out!
@speedster784
@speedster784 Год назад
Can you do a video about deployment like which services are best to deploy next js app to in terms of cost effectiveness and ease of use etc
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Yes I will do that topic as an upcoming video soon.
@junaidiqbal4104
@junaidiqbal4104 Год назад
the resource i was wanting from last 3 days
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
Awesome!
@thibaut.m44
@thibaut.m44 7 месяцев назад
Hi! thank you! you solve my issue, do you know why we should change "router" by "navigation" in the import section? thanks
@gustavobedin4827
@gustavobedin4827 11 месяцев назад
Omg, this video saved my life, thanks
@brettwestwooddeveloper
@brettwestwooddeveloper 11 месяцев назад
I'm so glad!
@Beattraceur
@Beattraceur Год назад
Hey Brett, I am looking for a guide on how to implement an active Navbar with the App Router. There is a “Checking Active Links“- Methode mentioned in the next js docs (Linking and Navigating). Does this mean you can use only the Link-Tag without the useRouter to have an active Navigation item? And if yes… how? Great video by the way✌🏼
@kolthir
@kolthir Год назад
I hope this si no too late, you can usePathname() (i think this is the name of the next hook) tis return the link string, and you can compare in the className: ex: pathname = usePathname(); className ={ pathname === '/' ? 'class': 'otherclass'}. I hope this work for you
@MJ-yp2hs
@MJ-yp2hs 10 месяцев назад
hey, i have a page that displays data from the database in cards and i want to pass the data to another page when the card is clicked (as of more detailed information) but its not working for me, can you help me with this? i would really appreciate it.
@djshadow-i1u
@djshadow-i1u 10 месяцев назад
hey bro thank you so much!
@brettwestwooddeveloper
@brettwestwooddeveloper 10 месяцев назад
No problem!
@tokomnyori6730
@tokomnyori6730 Год назад
Can we pass data using useRouter? I think it no longer supports in the new version.
@brettwestwooddeveloper
@brettwestwooddeveloper 11 месяцев назад
When I created this video you were allowed to but know you can't and is replaced by the useSearchParams.
@rizaldwiky-hk2vw
@rizaldwiky-hk2vw Год назад
hy bro, i have a questions since v13.4 , when route change by next/navigate, i have used const dynamic "force-dynanic" also even used revalidate = 0, but page route keep cache, and every 30 sec page will auto rerenderin, my questions is, how to make page auto rerendering without waiting 30sec like Gssp on page router? , thx broo.
@brettwestwooddeveloper
@brettwestwooddeveloper Год назад
you can use 'no-cache' in a fetch request, this will never cache data in a temporary file.
@mohamedhazara-c5z
@mohamedhazara-c5z Год назад
well done plase explain how to protect routes for admin and users and also forget password and sending email
@abhishekkumarmourya2022
@abhishekkumarmourya2022 8 месяцев назад
How to pass data using useRouter like Link
@mohammedaljahwari1165
@mohammedaljahwari1165 Год назад
Gando(John Doe) hahahahahhahahahahah
Далее
Next.js App Router: Routing, Data Fetching, Caching
14:32
Protect your NextJs 13 app using Next-Auth
24:49
Просмотров 79 тыс.
Next.js 13 Data Fetching - The Ultimate Guide
40:07
Просмотров 39 тыс.
Connect Google Provider to Database - Next Auth
40:00
I Built A Startup in 1 Month (SaaS)
19:43
Просмотров 1,5 тыс.