All Posts

A shop ledger page, 1899. Every line adds up.
Deploy Celery Worker, Beat and Flower With Docker Compose Using One Image
Run the Django web app, Celery worker, beat and Flower from a single Docker image with different commands, avoiding four Dockerfiles that drift apart.
4 min read
Celery vs Cron vs a Django Management Command: Pick the Simplest Tool
Not every scheduled or slow job needs Celery. Use clear decision criteria to choose between cron, a Django management command, and a task queue.
5 min read
React State That Will Not Re-render, and When You Do Not Need useEffect
Fix state that does not update the UI by avoiding mutation, then remove unnecessary effects by deriving values during render and choosing better data-fetching patterns.
5 min read
Why useEffect Loops Forever and How to Fix the Dependency Array
Diagnose infinite useEffect loops caused by objects and arrays recreated each render, state updates in effects, and missing cleanup, with concrete fixes.
4 min read
Migrating from the Pages Router to the App Router: An Incremental Checklist
A practical, incremental checklist for moving a Next.js project from the Pages Router to the App Router while both routers run side by side.
4 min read
Error Handling in the Next.js App Router: error.tsx, not-found, and Server Actions
Use error.tsx, global-error.tsx, not-found.tsx, and clear Server Action return patterns so expected and unexpected failures are handled without blank pages.
5 min read
How to Pass Search Params and Page Data to Layouts in the Next.js App Router
Layouts in the App Router do not receive searchParams and do not re-render on navigation. Learn the supported patterns for sharing URL state and page data with them.
5 min read
Make Next.js Navigation Feel Fast on Slow Networks
Reduce the frozen feeling when clicking links on slow connections by using loading.tsx, Suspense boundaries, prefetching, and pending indicators in the App Router.
4 min read
Next.js Middleware Limits and Redirect Loops with trailingSlash
Learn what Next.js middleware can and cannot do, its runtime constraints, and how to avoid redirect loops when it conflicts with the trailingSlash setting.
4 min read
How to Structure a Large Next.js App Router Project Without Messy Route Logic
Keep a growing App Router codebase maintainable with route groups, colocated feature folders, thin pages, private folders, and clear server and client boundaries.
4 min read
Fixing use client Boundary and Provider Errors in the Next.js App Router
Resolve common App Router errors about hooks in Server Components, context providers, and non-serializable props by placing the use client boundary correctly.
5 min read
Why Your Next.js App Router Data Is Stale and How to Control Caching
Understand why App Router pages show outdated data, how revalidate and force-dynamic behave, and how caching defaults differ between Next.js 14 and 15.
5 min read