This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { createContext, useContext, useEffect, useMemo, useRef, useState } from 'react' | |
import { useLocation } from 'react-router-dom' | |
export interface ViewProps { | |
// If the view has animations that should finish before route change happens | |
delayedTransition?: boolean | |
} | |
export interface ViewContext { | |
// If the browser's path is the same as context's path |