Skip to content
JS
Package

react-router-last-location

Provides access to the last location in react + react-router (v4.x) apps. Useful for handling internal routing. Easily prevent leaving your app by users.

v2.0.1, 7 Jul 2019MITCommonJSTypes: BundledRoutingReact
$ npm install react-router-last-location

Key numbers

As of 25 Sept 2026
Weekly downloads
16.2k
-30% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
7 years ago
v2.0.1
GitHub stars
284
23 forks
Open issues / PRs
8 / 10
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
020k40k60k80kSept 2025Mar 2026Sept 2026High 72.5k (7 Apr 2026)Low 10.9k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

16,162 downloads last week, 78,186 in the last month. The 12-month change of -30% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.0.1, 7 Jul 20197 years ago
First published
-
Last push to GitHub
10 Dec 20221,384 days before the snapshot
Repository archived
No
Open issues
8
Open pull requests
10
Commits, last 52 weeks
0
Dependents on npm
17

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
50 kB
Dependencies (0)
None
Peer dependencies (4)
reactreact-domprop-typesreact-router-dom
npm install react-router-last-location
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-router-last-location@2.0.1/
  • unpkghttps://unpkg.com/react-router-last-location@2.0.1/
  • esm.shhttps://esm.sh/react-router-last-location@2.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
react-router40.4m-9 days agoESM only-
react-router-dom-v5-compat277.2k-1 month agoESM + CommonJS-
wouter-preact21.6k-10 days agoESM only-
react-easy-router6m-3 years agoESM + CommonJS-
@tanstack/react-router17m-1 day agoESM + CommonJS-
@tanstack/router-generator15.7m-8 days agoESM + CommonJS-
@tanstack/router-utils15.7m-15 days agoESM + CommonJS-
@tanstack/router-plugin15.4m-8 days agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.