Skip to content

Commit 180b9c2

Browse files
ci: apply automated fixes
1 parent f3bb7d7 commit 180b9c2

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎packages/solid-router/src/useMatch.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ export function useMatch<
114114
? Boolean(router.stores.pendingRouteIds.get()[opts.from!])
115115
: (nearestMatch?.hasPending() ?? false)
116116

117-
if (prev !== undefined && (hasPendingMatch || router.stores.isTransitioning.get())) {
117+
if (
118+
prev !== undefined &&
119+
(hasPendingMatch || router.stores.isTransitioning.get())
120+
) {
118121
return prev
119122
}
120123

‎packages/solid-router/tests/loaders.test.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,9 @@ test('useLoaderData retains previous data while route match is pending', async (
769769

770770
expect(await screen.findByTestId('combined')).toHaveTextContent('6:0')
771771

772-
const appMatch = router.state.matches.find((match) => match.routeId === '/app')
772+
const appMatch = router.state.matches.find(
773+
(match) => match.routeId === '/app',
774+
)
773775

774776
expect(appMatch).toBeDefined()
775777

0 commit comments

Comments
 (0)