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·Oct 8, 2024How to Prevent the Waterfall Effect in Data FetchingIn this article, we’ll dive into a common issue developers face when fetching data in Next.js or any asynchronous JavaScript environment: the waterfall effect. This happens when data fetching occurs sequentially, leading to slower response times. It’...10 likesYou Don't Know Next.jsdata fetching
Nischal Baidarnischalbaidar.hashnode.dev·Oct 1, 2024Mistakes I Made While Learning Machine Learning (And How to Avoid Them)Hey everyone! When I started learning machine learning (ML), I made a bunch of mistakes that slowed me down. Here are some of the things I wish I knew earlier. Hopefully, this helps you avoid them! 😊 1. Setting Unrealistic Goals 🚀 At first, I thou...53 readsnischal_baidar
Rishi Bakshirishibakshi.hashnode.dev·Sep 22, 2024Avoiding Common Mistakes with Browser APIs in Next.jsOne common mistake that beginners make when working with Next.js is incorrectly using browser APIs like window.localStorage in client components. Understanding how Next.js handles server-side rendering (SSR) and client-side rendering (CSR) is crucial...11 likesYou Don't Know Next.jsBeginner Developers
Rishi Bakshirishibakshi.hashnode.dev·Sep 22, 2024Still Convinced That Multiple Fetch Requests Hit the Database Multiple Times? You’re Missing Out!One of the common mistakes I've encountered while working with Next.js is the misconception that making separate data fetching requests in different components is inefficient or problematic. In this article, we'll explore this mistake, how caching wo...You Don't Know Next.jsfetch
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
Rishi Bakshirishibakshi.hashnode.dev·Sep 22, 2024Handling Third-Party Components in Next.js: Avoiding Common MistakesWhen building with Next.js, dealing with third-party components can sometimes cause issues, especially if they aren't correctly configured for client-side rendering. A common mistake developers make is incorrectly using third-party components that re...11 likesYou Don't Know Next.jsthird-party-components
Rishi Bakshirishibakshi.hashnode.dev·Sep 10, 2024Think Client Components Only Run on the Client Side? Think AgainIn Next.js, there’s often a misconception that client components run only on the client, as their name might suggest. However, this isn't entirely true. In reality, client components in Next.js execute both on the server during the initial page rende...10 likesYou Don't Know Next.jsrsc-payload
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