fix(react): Keep a hold of previous routes when doing a redirect, closes #22053

This commit is contained in:
Ely Lucas
2020-09-08 19:58:00 -06:00
committed by GitHub
parent ba23ab3d66
commit 74af3cb50b
13 changed files with 88 additions and 28 deletions

View File

@ -7,6 +7,7 @@ import { RouterDirection } from './RouterDirection';
export interface RouteInfo<TOptions = any> {
id: string;
lastPathname?: string;
prevRouteLastPathname?: string;
routeAction?: RouteAction;
routeDirection?: RouterDirection;
routeAnimation?: AnimationBuilder;