We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e332c1 commit 76a3c59Copy full SHA for 76a3c59
1 file changed
packages/react-router/tests/loaders.test.tsx
@@ -356,7 +356,9 @@ test('reproducer #4245', async () => {
356
const data = indexRoute.useLoaderData()
357
return (
358
<div>
359
- <Link to="/foo" data-testid="link-to-foo">foo</Link>
+ <Link to="/foo" data-testid="link-to-foo">
360
+ foo
361
+ </Link>
362
{data}
363
</div>
364
)
@@ -366,7 +368,11 @@ test('reproducer #4245', async () => {
366
368
const fooRoute = createRoute({
367
369
getParentRoute: () => rootRoute,
370
path: '/foo',
- component: () => <Link to="/" data-testid="link-to-index">index</Link>,
371
+ component: () => (
372
+ <Link to="/" data-testid="link-to-index">
373
+ index
374
375
+ ),
376
})
377
378
const routeTree = rootRoute.addChildren([indexRoute, fooRoute])
0 commit comments