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.
7 lines (6 loc) • 456 B
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, };