Skip to content

Commit

Permalink
fix: Make <Link /> not async (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
4513ECHO authored Jan 9, 2025
1 parent 28bef05 commit 04fc5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/components/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Manifest } from 'vite'

type Options = { manifest?: Manifest; prod?: boolean } & JSX.IntrinsicElements['link']

export const Link: FC<Options> = async (options) => {
export const Link: FC<Options> = (options) => {
let { href, prod, manifest, ...rest } = options
if (href) {
if (prod ?? import.meta.env.PROD) {
Expand Down

0 comments on commit 04fc5e6

Please sign in to comment.