Space
This commit is contained in:
@@ -14,14 +14,18 @@ export const appHomeRoute: string = {
|
||||
}[appName];
|
||||
|
||||
let _stashedRedirect: string | undefined;
|
||||
|
||||
/**
|
||||
* An in-memory redirect saved during the login flow (mostly).
|
||||
*/
|
||||
export const stashedRedirect = () => _stashedRedirect;
|
||||
|
||||
export const stashRedirect = (r: string) => (_stashedRedirect = r);
|
||||
|
||||
export const unstashRedirect = () => {
|
||||
const r = _stashedRedirect;
|
||||
_stashedRedirect = undefined;
|
||||
return r;
|
||||
};
|
||||
|
||||
export const clearStashedRedirect = () => (_stashedRedirect = undefined);
|
||||
|
||||
Reference in New Issue
Block a user