Skip to content

Commit

Permalink
test: remove unnecessary async from page components
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed Jun 11, 2024
1 parent 52b4d34 commit 8e75fd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Delay } from '../delay'

export const dynamic = 'force-dynamic'

export default async function Page() {
export default function Page() {
return (
<>
<Link href={INVALID_URL}>invalid link</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useRouter } from 'next/navigation'

export const dynamic = 'force-dynamic'

export default async function Page() {
export default function Page() {
const router = useRouter()
useEffect(() => {
router.prefetch(INVALID_URL)
Expand Down

0 comments on commit 8e75fd3

Please sign in to comment.