useFormStatus - Pending State for Next.js (Server Actions)

ByteGrad July 25, 2023
Video Thumbnail
ByteGrad Logo

ByteGrad

@bytegrad

About

Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). My COMPLETE React & Next.js course is out now! Find it here: https://bytegrad.com/courses/professional-react-nextjs It's the #1 resource to master the latest React & Next.js. I'm very proud of it, my best work! Interested in sponsoring me? I love working with sponsors. Please email me here: [email protected] Note that my videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. You agree by watching the videos that you are solely responsible for any mistakes in your code. This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 and KRS-number: 0001125554

Video Description

👉 NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). 👉 Add authentication to your app FAST: https://bit.ly/3QOe1Bh 👉 NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs 👉 Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript 👉 Professional CSS Course: https://bytegrad.com/courses/professional-css 👉 Discord: all my courses have a private Discord where I actively participate 🔔 Email newsletter (BIG update soon): https://email.bytegrad.com ⏱️ Timestamps: 0:00 Optimistic UI example 0:42 Overview 2:01 useOptimistic hook 5:41 Revert / Undo (revalidatePath) #webdevelopment #programming #coding . . TOP resource to LEARN AI for Developers - https://datacamp.pxf.io/RGyxrR (paid sponsorship & ByteGrad Sp. z o.o. gets commission)

Transform Your Space Today

AI-recommended products based on this video

Loading...
Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

(23,669)
$10.38
FREE delivery Mon, Sep 15 on your first order
5K+ bought in past month
Loading...
Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Red)

Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Red)

(126)
$65.99
FREE delivery Wed, Aug 20
400+ bought in past month
Loading...
Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Royal Blue)
Best Seller

Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Royal Blue)

(97)
$69.99
PrimeFREE delivery Sat, Jun 14
Loading...
Cordless Paint Sprayer for Dewalt 20V MAX Battery.Paint Spray Gun with Powerful Motor and 4 Copper Nozzle.650w Electric HVIP Sprayer for House Painting,Furniture, Wall, Door.(NOT Battery)

Cordless Paint Sprayer for Dewalt 20V MAX Battery.Paint Spray Gun with Powerful Motor and 4 Copper Nozzle.650w Electric HVIP Sprayer for House Painting,Furniture, Wall, Door.(NOT Battery)

(5)
$74.99
FREE delivery Wed, Aug 20
50+ bought in past month
Loading...
Handmade Custom Reusable Stencils, Personalized Text Stencil for Spray Painting & Sign Making, Durable Plastic, Metal & Wood Stencils, Multiple Material Options, Custom Stencil

Handmade Custom Reusable Stencils, Personalized Text Stencil for Spray Painting & Sign Making, Durable Plastic, Metal & Wood Stencils, Multiple Material Options, Custom Stencil

(0)
$11.99
$13.94 delivery Jul 2 - 22
Loading...
VASAGLE C-Shaped End Table, Set of 2, Side Table for Sofa, Couch Table with Metal Frame, Small TV Tray Table for Living Room, Bedroom, Rustic Brown and Black ULET355B01

VASAGLE C-Shaped End Table, Set of 2, Side Table for Sofa, Couch Table with Metal Frame, Small TV Tray Table for Living Room, Bedroom, Rustic Brown and Black ULET355B01

(2,251)
$69.99
FREE delivery Mon, Jun 16
Loading...
RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

(190)
$36.09
Prime
2K+ bought in past month
Loading...
Rolanstar Queen Bed Frame with 4 Storage Drawers and Charging Station, Upholstered Bed Frame Queen Size with Adjustable Headboard and LED Lights, No Box Spring Needed, Easy Assembly, Black

Rolanstar Queen Bed Frame with 4 Storage Drawers and Charging Station, Upholstered Bed Frame Queen Size with Adjustable Headboard and LED Lights, No Box Spring Needed, Easy Assembly, Black

(2,736)
$279.99
$79.99 delivery Jun 19 - 25Only 9 left in stock.
Loading...
Rolanstar Bed Frame with USB Charging Station, Twin Bed Frame with LED Lights Headboard, Single Platform with Strong Metal Slats, Under Bed Storage Clearance, No Box Spring Needed, Noise Free

Rolanstar Bed Frame with USB Charging Station, Twin Bed Frame with LED Lights Headboard, Single Platform with Strong Metal Slats, Under Bed Storage Clearance, No Box Spring Needed, Noise Free

(2,335)
$179.99
FREE delivery Jun 29 - Jul 3
50+ bought in past month
Loading...
VASAGLE Queen Bed Frame with 51.4 Inch Tall Storage Headboard, Bed Frame Queen Size with 4 Storage Drawers on Wheels, LED Lights, Charging Station, No Box Spring Needed, Modern, Dark Gray URMB891G02

VASAGLE Queen Bed Frame with 51.4 Inch Tall Storage Headboard, Bed Frame Queen Size with 4 Storage Drawers on Wheels, LED Lights, Charging Station, No Box Spring Needed, Modern, Dark Gray URMB891G02

(40)
$2,102.60
Loading...
Rolanstar Bed Frame with USB Charging Station, Queen Bed Frame with LED Lights Headboard, Platform Bed with Strong Metal Slats, Under Bed Storage Clearance, No Box Spring Needed, Noise Free

Rolanstar Bed Frame with USB Charging Station, Queen Bed Frame with LED Lights Headboard, Platform Bed with Strong Metal Slats, Under Bed Storage Clearance, No Box Spring Needed, Noise Free

(2,320)
$159.99
$49.99 delivery Jun 19 - 23
Loading...
LEGO Icons Bonsai Tree Building Set - Artificial Bonsai Tree Plants for Home Decor, Adults Ages 18+ - Faux, Fake Plants for Table, Desk, Office - Birthday Gift for Men & Women - 10281

LEGO Icons Bonsai Tree Building Set - Artificial Bonsai Tree Plants for Home Decor, Adults Ages 18+ - Faux, Fake Plants for Table, Desk, Office - Birthday Gift for Men & Women - 10281

(22,441)
$59.99
PrimeFREE delivery Sat, Jun 14
600+ bought in past month
Loading...
LEGO Botanicals Tiny Plants - Artificial, Fake Indoor Plant Building Set for Home, Kitchen, Desk Decoration, Adults Ages 18+ - Gift for Graduation - 10329

LEGO Botanicals Tiny Plants - Artificial, Fake Indoor Plant Building Set for Home, Kitchen, Desk Decoration, Adults Ages 18+ - Gift for Graduation - 10329

(4,382)
$54.99$47.84
PrimeFREE delivery Sat, Jun 14
600+ bought in past month
Loading...
LaLaGreen Wall Planters - 16 Inch Wall Planters for Indoor Plants, 3 Tier Galvanized Succulent Wall Mounted Planters, Metal Boho Window Herb Garden, Rectangle Hanging Vertical Shelf Shower Plant Pot

LaLaGreen Wall Planters - 16 Inch Wall Planters for Indoor Plants, 3 Tier Galvanized Succulent Wall Mounted Planters, Metal Boho Window Herb Garden, Rectangle Hanging Vertical Shelf Shower Plant Pot

(152)
$29.99
FREE delivery Sat, Jun 14 on your first order
Loading...
Barnyard Designs Indoor Herb Garden Planter Set with Tray, Metal Windowsill Plant Pots with Drainage for Outdoor or Indoor Plants, Set/3 (White)

Barnyard Designs Indoor Herb Garden Planter Set with Tray, Metal Windowsill Plant Pots with Drainage for Outdoor or Indoor Plants, Set/3 (White)

(3,979)
$29.95
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month