Skip to content

Commit

Permalink
Fix SuspenseRouter.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 6, 2024
1 parent b0101d4 commit ba0e9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/components/SuspenseRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface BrowserRouterProps {
}

export const SuspenseRouter = ({ basename, children, window }: BrowserRouterProps) => {
const historyRef = useRef<BrowserHistory>()
const historyRef = useRef<BrowserHistory>(null)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [isPending, startTransition] = useTransition()

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/SuspenseRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface BrowserRouterProps {
}

export const SuspenseRouter = ({ basename, children, window }: BrowserRouterProps) => {
const historyRef = useRef<BrowserHistory>()
const historyRef = useRef<BrowserHistory>(null)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [isPending, startTransition] = useTransition()

Expand Down

0 comments on commit ba0e9ca

Please sign in to comment.