06d8acdfd0
This pull request adds a test case for the reproduction provided in #12445. This bug is specifically caused when loading the next page before navigation has actually occurred. --- Fixes #12445
20 lines
373 B
JavaScript
20 lines
373 B
JavaScript
import Link from 'next/link'
|
|
import css from './index.module.css'
|
|
|
|
export default function Home() {
|
|
return (
|
|
<main>
|
|
<Link href="/other">
|
|
<a id="link-other">other</a>
|
|
</Link>
|
|
<br />
|
|
<h1 id="black-title" className={css.header}>
|
|
Black
|
|
</h1>
|
|
</main>
|
|
)
|
|
}
|
|
|
|
export function getServerSideProps() {
|
|
return { props: {} }
|
|
}
|