Files
JJ KasperandGitHub 9781c62c30 Fix revalidate check in client component (#41917)
Ensures we check for the explicit type on revalidate as client
components can return an object when accessing module export.

Patched deployment can be seen here
https://next-13-client-page-iuqrog6hj-ijjk-testing.vercel.app/broken

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

Fixes: https://github.com/vercel/next.js/issues/41890
2022-10-26 17:24:38 -07:00

23 lines
455 B
JavaScript

'use client'
import Link from 'next/link'
export default function Page({ params }) {
return (
<>
<p id="page">/dynamic-no-gen-params</p>
<p id="params">{JSON.stringify(params)}</p>
<Link href="/dynamic-no-gen-params/second" id="dynamic-no-params-again">
/dynamic-no-gen-params/second
</Link>
<br />
<Link href="/blog/styfle" id="to-blog">
/blog/styfle
</Link>
<br />
</>
)
}