Skip to content

Commit 79c4c03

Browse files
committed
fix: build and use a proper <Show>
1 parent d2fbf83 commit 79c4c03

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/routes/solid-router/reference/data-apis/cache.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ isDeprecated: true
44
---
55

66
<Callout type="caution" title="Deprecation Warning">
7-
This API is deprecated since `v0.15.0` of Solid-Router. Use [query](solid-router/reference/data-apis/query) instead. It will be removed in an upcoming release.
7+
This API is deprecated since `v0.15.0` of Solid-Router. Use [query](/solid-router/reference/data-apis/query) instead. It will be removed in an upcoming release.
88
</Callout>
99

1010
`cache` is a [higher-order function](https://en.wikipedia.org/wiki/Higher-order_function) designed to create a new function with the same signature as the function passed to it.

src/ui/layout/main-navigation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ function ListItemLink(props: { item: Entry }) {
5353
href={props.item.path}
5454
class={`hover:text-blue-700 dark:hover:text-blue-300 block w-full lg:text-sm pl-3.5 before:pointer-events-none before:absolute before:-left-1 before:top-1/2 before:h-1.5 before:w-1.5 before:-translate-y-1/2 before:rounded-full ${linkStyles()}`}
5555
>
56-
{props.item.title} {props.item.isDeprecated && "(deprecated)"}
56+
{props.item.title}
57+
<Show when={props.item.isDeprecated}> (deprecated)</Show>
5758
<Show when={!props.item.isTranslated}>
5859
<span>
5960
<abbr

0 commit comments

Comments
 (0)