Skip to content

Commit c8c83d8

Browse files
committed
cleanup
1 parent 2d505ab commit c8c83d8

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

packages/router-core/src/router.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,6 @@ export class RouterCore<
14551455
_nonReactive: {
14561456
loadPromise: createControlledPromise(),
14571457
__beforeLoadContext: undefined,
1458-
// Preserve error from existing match (e.g., preloaded match) so redirects during preload are preserved
14591458
error: (existingMatch as any)?._nonReactive?.error,
14601459
},
14611460
__beforeLoadContext: undefined,
@@ -1597,7 +1596,6 @@ export class RouterCore<
15971596
} = {},
15981597
): ParsedLocation => {
15991598
// We allow the caller to override the current location
1600-
// Use pendingBuiltLocation if available to support parallel navigate calls
16011599
const currentLocation =
16021600
dest._fromLocation || this.pendingBuiltLocation || this.latestLocation
16031601

@@ -1962,8 +1960,6 @@ export class RouterCore<
19621960
_includeValidateSearch: true,
19631961
})
19641962

1965-
// Store this as the pending location for any subsequent navigate calls
1966-
// This allows parallel navigate calls to build on top of each other
19671963
this.pendingBuiltLocation = location as ParsedLocation<
19681964
FullSearchSchema<TRouteTree>
19691965
>

packages/router-core/src/ssr/ssr-server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export function dehydrateMatch(match: AnyRouteMatch): DehydratedMatch {
3333
s: match.status,
3434
}
3535

36-
// Dehydrate __beforeLoadContext from _nonReactive since that's where it's stored
3736
if (match._nonReactive.__beforeLoadContext !== undefined) {
3837
dehydratedMatch.b = match._nonReactive.__beforeLoadContext
3938
}

packages/solid-router/src/Transitioner.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ export function Transitioner() {
3636
const previousIsPagePending = usePrevious(isPagePending)
3737

3838
router.startTransition = (fn: () => void | Promise<void>) => {
39-
// Wrap fn execution in Solid.startTransition to prevent Suspense fallbacks
40-
// For async operations, await the promise inside the transition
4139
startSolidTransition(async () => {
4240
await fn()
4341
})

0 commit comments

Comments
 (0)