Skip to content

Commit 2aeddaa

Browse files
committed
chore: rename
1 parent 56dca44 commit 2aeddaa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/routes.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { RouteObject } from 'react-router'
44
import { NotFound } from './components/NotFound.js'
55
import { DocsLayout } from './layouts/DocsLayout.js'
66
import { Root } from './root.js'
7-
import { handleChunkError } from './utils/chunkError.js'
7+
import { maybeHandleChunkError } from './utils/chunkError.js'
88

99
const notFoundRoute = (() => {
1010
const virtualRoute = routes_virtual.find(({ path }) => path === '*')
@@ -26,7 +26,7 @@ const notFoundRoute = (() => {
2626
),
2727
} satisfies RouteObject
2828
} catch (error) {
29-
handleChunkError(error as Error)
29+
maybeHandleChunkError(error as Error)
3030
throw error
3131
}
3232
},
@@ -71,7 +71,7 @@ export const routes = [
7171
),
7272
} satisfies RouteObject
7373
} catch (error) {
74-
handleChunkError(error as Error)
74+
maybeHandleChunkError(error as Error)
7575
throw error
7676
}
7777
},

src/app/utils/hydrateLazyRoutes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { matchRoutes, type RouteObject } from 'react-router'
22

3-
import { handleChunkError } from './chunkError.js'
3+
import { maybeHandleChunkError } from './chunkError.js'
44

55
export async function hydrateLazyRoutes(routes: RouteObject[], basePath: string | undefined) {
66
// Determine if any of the initial routes are lazy
@@ -21,7 +21,7 @@ export async function hydrateLazyRoutes(routes: RouteObject[], basePath: string
2121
}),
2222
)
2323
} catch (error) {
24-
handleChunkError(error as Error)
24+
maybeHandleChunkError(error as Error)
2525
throw error
2626
}
2727
}

0 commit comments

Comments
 (0)