react-router-last-location icon indicating copy to clipboard operation
react-router-last-location copied to clipboard

Provides access to the last location in react + react-router (v4.x, v5.x) applications. ❤️ Using hooks? useLastLocation | 💉 Using HOC? withLastLocation

Results 18 react-router-last-location issues
Sort by recently updated
recently updated
newest added

Hello everybody, Is there any way I could retrieve the last `match` ({path, url})? I want to know which is the matched route (likes "/users/:userId/cart") of the last location, so...

I was getting the following error when running `tsc --project tsconfig.json` after adding react-router-last-location. ```javascript $ tsc --project tsconfig.json node_modules/react-router-last-location/dist/LastLocationProvider.d.ts:14:179 - error TS2694: Namespace '"/Users/sidecar/repos/connect-ui/node_modules/@types/react-router/index"' has no exported member 'WithRouterStatics'....

Hi, I have just installed lib into my project and I can't make `preventLastLocation` working. below is my render code: ``` return ( {props.children} ); ``` You can check it...

# Possible APIs **Function as Child Component** ```jsx {(lastLocation) => ( Last location was: {lastLocation.pathname} )} ``` **Function as Prop Component** ```jsx const renderLastLocation = (lastLocation) => ( Last location...

Bumps [express](https://github.com/expressjs/express) from 4.17.1 to 4.18.2. Release notes Sourced from express's releases. 4.18.2 Fix regression routing a large stack in a single route deps: [email protected] deps: [email protected] perf: remove unnecessary...

dependencies

Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...

dependencies

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...

dependencies