How to Use NextJS 13 Link and useRouter Like a Pro

  Рет қаралды 10,325

Brett Westwood - Software Engineer

Brett Westwood - Software Engineer

Күн бұрын

Пікірлер: 21
@C-Raph
@C-Raph 10 ай бұрын
Man thank youuuuu🥺🥺 I've been battling an error with useRouter but this really helped
@brettwestwooddeveloper
@brettwestwooddeveloper 10 ай бұрын
No problem! Glad I could help you out!
@junaidiqbal4104
@junaidiqbal4104 Жыл бұрын
the resource i was wanting from last 3 days
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Awesome!
@gustavobedin4827
@gustavobedin4827 Жыл бұрын
Omg, this video saved my life, thanks
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
I'm so glad!
@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.
@djshadow-i1u
@djshadow-i1u Жыл бұрын
hey bro thank you so much!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
No problem!
@thibaut.m44
@thibaut.m44 10 ай бұрын
Hi! thank you! you solve my issue, do you know why we should change "router" by "navigation" in the import section? thanks
@MJ-yp2hs
@MJ-yp2hs Жыл бұрын
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.
@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.
@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
@mohamedhazara-c5z
@mohamedhazara-c5z Жыл бұрын
well done plase explain how to protect routes for admin and users and also forget password and sending email
@tokomnyori6730
@tokomnyori6730 Жыл бұрын
Can we pass data using useRouter? I think it no longer supports in the new version.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
When I created this video you were allowed to but know you can't and is replaced by the useSearchParams.
@abhishekkumarmourya2022
@abhishekkumarmourya2022 Жыл бұрын
How to pass data using useRouter like Link
@mohammedaljahwari1165
@mohammedaljahwari1165 Жыл бұрын
Gando(John Doe) hahahahahhahahahahah
HTML & CSS Project Tutorial - Build a Recipes Website
2:18:08
freeCodeCamp.org
Рет қаралды 508 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
Yep - AIGleam
3:50
AIgleam
Рет қаралды 1
Next.js App Router: Routing, Data Fetching, Caching
14:32
Vercel
Рет қаралды 342 М.
Next 14 + React Query COMBO with Server Actions and RSC
9:49
developedbyed
Рет қаралды 121 М.
Creating a Navigation Bar with Next.js & Tailwind CSS: A Step-by-Step Guide
30:51
Brett Westwood - Software Engineer
Рет қаралды 33 М.
NextJS 13 API Routes: Better Than Expected!
15:05
Josh tried coding
Рет қаралды 113 М.
Next.js Middleware: The Secret Sauce to Enhance Your Next App
28:38
How to Protect Routes in Next.js 14 in 4 Ways - Private Routes - Authorization
27:47
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН