2024-03-11
3702
#nextjs
Elijah Agbonze
139691
Mar 11, 2024 ⋅ 13 min read

Understanding Next.js routeChangeStart and router events

Elijah Agbonze I am a full-stack software developer from Nigeria. I love coding and writing about coding.

Recent posts:

Improving Frontend Workflows With In-Browser Database Tools

​​Improving frontend workflows with in-browser database tools

In-browser database tools like RxDB and Neo4j Sandbox help frontend devs manage data, work offline, and streamline tasks with AI support.

Muhammed Ali
Jun 3, 2025 ⋅ 7 min read
How To Iterate Over Enums In TypeScript

How to iterate over enums in TypeScript (with code examples)

Learn exactly how to iterate over numeric and string enums in TypeScript, with practical code snippets and type-safe patterns.

Matteo Di Pirro
Jun 2, 2025 ⋅ 9 min read
How To Import SVGs Into Your Next.js Apps

How to import SVGs into your Next.js apps: A 2025 guide

Learn the best 2025 methods to import SVGs in Next.js 14+, with tips on performance, styling, and App Router integration.

Joseph Mawa
Jun 2, 2025 ⋅ 9 min read
designing llm first products

Designing LLM-first products, not just features

Everyone’s building chat-first AI products. And most of them suck. Here’s how to break the mold and ship LLM-native software that actually solves problems.

Rosario De Chiara
May 30, 2025 ⋅ 4 min read
View all posts

One Reply to "Understanding Next.js <code>routeChangeStart</code> and router events"

  1. With next/navigation, how do I detect route changes before they happen now that router.events no longer exist?

    Needing to surface prompts from certain pages, asking the user if they are sure they want to navigate away. I don’t want to do this after the route changes.

Leave a Reply