Ben Abderrahmen Mohamed Aminem-amine-bar.hashnode.dev·Dec 8, 2024Exploring Next.js Server ActionsNext.js has always been a strong framework for building full-stack apps, and with the introduction of server actions in version 13.4, it has become even more powerful.So, what are server actions?Server actions are asynchronous functions executed on t...80 readsJavaScript
Keshav Sharmakeshavsharma.hashnode.dev·Nov 16, 2024Server Actions in Next.jsNext.js is known for its power and flexibility when it comes to building fast, modern web applications. With Next.js 14, a new feature got introduced that changed the way we thought about server-side logic: Server Actions. What are server actions? Se...Next.js
Tapas AdhikaryforfreeCodeCampfreecodecamp.org·Oct 22, 2024How to Pass Additional Arguments to Next.js Server ActionsAsynchronous data mutation and handling is a necessary task in modern web applications. You may want to execute a standalone asynchronous function on the server to carryout tasks like saving data to the data store, sending emails, downloading PDFs, p...React
Yohan LByohanlb.hashnode.dev·Oct 16, 2024FeaturedWhen should I Use Server Action (Next.js 14)When I started working on my GeoQuiz App, I started experimenting with the new Next Server Actions. And probably like many of us, I quickly learned to love it, they felt like a clean and efficient solution for most of my server requests. But as I sta...53 likes·1.6K readsReactNext.js
Rishi Bakshirishibakshi.hashnode.dev·Oct 9, 2024The Biggest Mistake You’re Making with Next.js Server Actions: Silent ThreatOne of the critical mistakes I learned in my Next.js journey is failing to validate and protect server actions. Server actions in Next.js can expose post routes, which can be vulnerable if not properly secured. When using server actions, it's essenti...10 likesYou Don't Know Next.jsNext.js
Rishi Bakshirishibakshi.hashnode.dev·Oct 9, 2024Think Server Actions Can Only Be Used in Server Components? Think againOne common misconception in Next.js development is thinking that server actions can only be utilized within server components. However, this isn't the case. Server actions can be used inside client components as well, which allows us to interact with...You Don't Know Next.jsNext.js
Rishi Bakshirishibakshi.hashnode.dev·Oct 8, 2024Page Not Reflecting Updated Data After Mutation? Here's How to Fix ItWhen working with data mutations in Next.js, one common problem is when the page doesn’t update after adding or editing data. Imagine you’re adding a new to-do item via a server action, and even though the data is updated in the database, the changes...10 likesYou Don't Know Next.jsMutations
Rishi Bakshirishibakshi.hashnode.dev·Sep 22, 2024Data Fetching: Why Server Actions Outperform Route HandlersOne of the common beginner mistakes I’ve encountered is misunderstanding the difference between when to use route handlers and when to use server actions for data handling in Next.js. With the introduction of server actions and server components in N...1 likeYou Don't Know Next.jsserver actions
Abeer Abdul Ahadabeer.hashnode.dev·Sep 18, 2024FeaturedWhat are Server Actions in Next.js? Next.js 14 EditionWhat are Server Actions? To let you get the concept crystal clear, server actions are basically backend stuffs that you can do in your Next.js project. Server actions play a key role in web applications, handling tasks like data processing and user a...17 likes·199 readsNext.jsNext.js
Rishi Bakshirishibakshi.hashnode.dev·Sep 10, 2024Understanding use server and Avoiding Data Leaks in Next.jsOne of the common misconceptions in Next.js is the belief that adding the use server directive to a component will automatically turn it into a server component. However, this isn't accurate. The use server directive is used to create server actions,...You Don't Know Next.jsdata-access-layer