react-router-last-location
Version:
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.
15 lines (13 loc) • 481 B
text/typescript
import withLastLocation, { WithLastLocationProps } from './withLastLocation';
import LastLocationProvider from './LastLocationProvider';
import useLastLocation from './useLastLocation';
import { LastLocationType } from './LastLocationContext';
import RedirectWithoutLastLocation from './RedirectWithoutLastLocation';
export {
WithLastLocationProps,
LastLocationType,
withLastLocation,
LastLocationProvider,
useLastLocation,
RedirectWithoutLastLocation,
};