Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Next.js 15: <Form> • Prefetching • Client-side navigation • Progressive enhancement It is useful for forms that navigate to a new page, such as a search form that leads to a results page.

67,908 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

Delba profil fotoğrafı
Delba1 yıl önce

🚀 by @lubieowoce

henrique cunha profil fotoğrafı
henrique cunha1 yıl önce

delba, please release your remotion setup 🙏

Sidi jeddou profil fotoğrafı
Sidi jeddou1 yıl önce

This is amazing, Delba. I’m not sure if I should upgrade to v15 for I’m scared😅

Delba profil fotoğrafı
Delba1 yıl önce

Up to you. Some folks like to wait a bit. If it helps, we've had two RCs and use v15 on all Vercel sites. If you do, try running the upgrade CLI with automated codemods for every change. Let us know if it missed anything.

Matt profil fotoğrafı
Matt1 yıl önce

Love these vids every time Delba 🙏🏼

freddie profil fotoğrafı
freddie1 yıl önce

i could swear i’ve seen this API before

Vitaly Gashkov profil fotoğrafı
Vitaly Gashkov1 yıl önce

What color theme is this? 🤔

Indra Zulfi🧢 profil fotoğrafı
Indra Zulfi🧢1 yıl önce

Hey @delba_oliveira Thanks for Sharing. Quick qs, How do you build this kind of video?

Prabhas profil fotoğrafı
Prabhas1 yıl önce

Great explanation with cool animation

Andrew Aliaj profil fotoğrafı
Andrew Aliaj1 yıl önce

another cool feature by Next.js

Benzer Videolar

How should you search, filter, and paginate data with Next.js? This demo has 50,000 books in a Postgres database. • Page Load: When the page loads, we see the React Suspense fallback. This loading skeleton is displayed until the first page of books is retrieved from the database. • Searching: The search input has a 200ms debounce. After 200ms of inactivity, the form submits, updating the URL state with `?q={search}`. The Server Component reads `searchParams` and queries the database. On form submission, a React transition starts, allowing us to read the pending status with `useFormStatus` to display an inline loading state. • State Preservation: Navigating to an individual book page retains the search input state. Reloading the page or sharing the link preserves the search results. • Client-side Filtering: Filtering authors in the left sidebar is done client-side. Authors are fetched by a Server Component and passed as props to the sidebar. Changing the input value updates React state and re-renders the sidebar. • Optimistic Updates: The sidebar’s selected authors are optimistically updated with `useOptimistic`. Checkbox selections update instantly without waiting for the URL to change. • State Preservation: Navigating to an individual book page retains the sidebar filter input and selected author state across navigations, giving it an app-like feel. • Pagination: Navigating between pages updates the URL state, triggering the Server Component to query the database for the specific page of books. We also fetch the total book count to show the total number of pages. This demo isn't perfect yet (still working on it) but it's been a fun playground for some of these patterns. You can imagine a similar experience for thousands of movies, cars, products, or any other very large dataset. Demo → Code →

Lee Robinson

236,573 görüntüleme • 1 yıl önce