File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import {
1010} from "react-router-dom" ;
1111import { fakeAuthProvider } from "./auth" ;
1212
13+ import type { JSX } from "react" ;
14+
1315export default function App ( ) {
1416 return (
1517 < AuthProvider >
Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ export function BrowserRouter({
759759 future,
760760 window,
761761} : BrowserRouterProps ) {
762- let historyRef = React . useRef < BrowserHistory > ( ) ;
762+ let historyRef = React . useRef < BrowserHistory > ( undefined ) ;
763763 if ( historyRef . current == null ) {
764764 historyRef . current = createBrowserHistory ( { window, v5Compat : true } ) ;
765765 }
@@ -810,7 +810,7 @@ export function HashRouter({
810810 future,
811811 window,
812812} : HashRouterProps ) {
813- let historyRef = React . useRef < HashHistory > ( ) ;
813+ let historyRef = React . useRef < HashHistory > ( undefined ) ;
814814 if ( historyRef . current == null ) {
815815 historyRef . current = createHashHistory ( { window, v5Compat : true } ) ;
816816 }
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ export function MemoryRouter({
222222 initialIndex,
223223 future,
224224} : MemoryRouterProps ) : React . ReactElement {
225- let historyRef = React . useRef < MemoryHistory > ( ) ;
225+ let historyRef = React . useRef < MemoryHistory > ( undefined ) ;
226226 if ( historyRef . current == null ) {
227227 historyRef . current = createMemoryHistory ( {
228228 initialEntries,
You can’t perform that action at this time.
0 commit comments