Dev By Diwash

Blogs .

A collection of expert articles and solutions on development, technology, and programming.

How to Use Redux with Persistence in Next.js Image

Spread it online!

A complete guide to setting up Redux with persistence in the latest Next.js App Router, including how to fix common SSR issues.

May 1, 2025
6 min read
The Best Way to Connect MongoDB with Next.js Image

Spread it online!

Learn the most reliable and clean way to connect MongoDB with your Next.js application using Mongoose and persistent connection management.

Apr 30, 2025
4 min read
Awaiting Params in Next.js Dynamic Routes Image

Spread it online!

Learn how to properly await dynamic route parameters in Next.js to avoid the common error: `params should be awaited before using its properties`.

Apr 29, 2025
3 min read
Fixing Stale Data in Next.js Image

Spread it online!

If you're developing with Next.js, you may have encountered an issue where old, cached data is served even though new data exists. This happens due to Next.js’s built-in caching mechanisms, such as Incremental Static Regeneration (ISR). While ISR is a powerful feature for improving performance, sometimes it can lead to issues with stale data. In this blog post, I’ll show you how I fixed this issue using the `revalidatePath` function.

Apr 27, 2025
5 min read
Awaiting Params in Next.js Metadata Image

Spread it online!

In Next.js, when generating dynamic metadata, you might encounter the warning "params should be awaited before using its properties." In this blog, I’ll explain why this happens and how to properly handle async parameters inside generateMetadata for a smooth developer experience.

Apr 28, 2025
4 min read