Video yükleniyor...
Video Yüklenemedi
after() in Nextjs
48,270 görüntüleme • 1 yıl önce •via X (Twitter)
9 Yorum

Alex Sidorenko1 yıl önce
Docs

Alfon1 yıl önce
Wait whats the difference between after() and waitUntil() ?

Dominik Ferber1 yıl önce
Your clips are so good! Small heads up around this example: Next.js might prefetch pages so you would end up logging views for pages the user never actually visited

Alex Sidorenko1 yıl önce
Good call, thanks. In a real-world scenario, you'll likely have a loading.tsx or Suspense, and Links only prefetch the page up to the Suspense boundary.

Mubashir1 yıl önce
amazing, is this api stable?

Alex Sidorenko1 yıl önce
Yes, since 15.1

Stephen Rayner1 yıl önce
Can this be used more than once the same response?

Alex Sidorenko1 yıl önce
Just checked this by adding a ChildComponent that also logs to another hook using after(). Both work.

Edgaras1 yıl önce
This could actually be nice for SOME background job use cases.



