router.refresh()
A method that clears the Router Cache for the current route and asks the server for a fresh render, keeping client state.
In more detail
Use it after a client-side mutation that did not go through a revalidating Server Action. It does not clear the Data Cache or Full Route Cache on the server.
Related terms
- useRouter — The hook from next/navigation that lets Client Components navigate and refresh in code.
- Router Cache — The fourth Next.js caching tier: the browser keeps RSC payloads of visited and prefetched route segments in memory for instant navigation.
Taught in
- Router Cache: In-Memory Client Prefetch Semantics — Next.js 15 & Modern App Router Architecture