Next.js Router.Push Is Too Slow (Change Search Params) #nextjs #nextjs13 #nextjs15

preview_player
Показать описание


📣 Follow Coding in Flow on social media:
Рекомендации по теме
Комментарии
Автор

this actually saved me from going crazy, I thought my app was slow af because of the url params state but this was the solution, now it's fast af lol, thanks

josephito
Автор

If you want to load data after going to a new page which is most times. Using <Link> should be the best option. Link is lready optimized and performs route changes efficiently with prefetching and minimal client-side work.

franktalksprogramming
Автор

I got that advice from your latest ai builder course when using breadcrumbs. keep doing your thing brother, you are one of the best next js youtubers out there, who really dives into the subtle details of concepts in tutorials. still difficult to follow along because there is a lot of information but we'll get there💪

КириллАмиров-цф
Автор

This is your 2nd or 3rd short I've noticed the loop 😅. It's perfect!

xOmzi
Автор

Wow, I was stuck on this issue before and didn't expect it was due to this reason. NIce video .

Finch-Bro
Автор

all of your videos are 10/10. Keep going!! When updating de url via history.pushState() doesnt re-render componen, so how can I update UI or state? I have a page.tsx with searchParams() and another client component with an onClick url update. But page component doesnt update.

jonatanmissora
Автор

<Link> is appropriate here using pages/app router. For a simple view change, the layout should be effected. All on client side

anthonyguerrera
Автор

Isn't it not rerendered when state chnages?

kkomjang
Автор

Don't you need to reload the page to react to the query param change?

MarkWettinger
Автор

need a suggestion.

I have a list of blogs, and I want to fetch them based on the page number by pushing it to the URL. Should I use server-side data fetching, or go with client-side fetching instead?

The issue is that with server-side fetching, there's no loading state shown while the blogs load. ❤️ Please help me decide.

rajfekar
Автор

use nuqs ? 🤔 I use it and we can make a request if needed ....

xtz_
Автор

Umm I'm using a pathname🤔 from next/navigation I think, it's valid/efficient ?

AC-sjhu
Автор

Me => android to ios to flutter
Bro => android to web 😢😢😢
Miss you, bro

abdulwahabkhan
Автор

this api is standard api not from nextjs😅

NOINN
Автор

I am from india and I am using Prisma with Next.js API routes, but when deploying to Vercel, the createdAt times are showing incorrect, i.e., out of Indian time (IST). My database is working fine locally, but on Vercel, the createdAt time is showing incorrect values. Please help me, as I need to deliver the project to the client urgently. This issue has persisted for 2 days, and I need a proper solution.

spiritualcode
Автор

Who is the state updating on url change?

dhruvverma
visit shbcf.ru