f22f88fd73
In development or with an invalid href, `await router.prefetch()` would not resolve the promise. This PR ensures that `await router.prefetch()` always resolves, no matter if it succeeds or not. Fixes: https://github.com/vercel/next.js/issues/15436 Relevant discussion: https://github.com/vercel/next.js/discussions/15431#discussioncomment-41264
3 lines
56 B
JavaScript
3 lines
56 B
JavaScript
export default function AnotherPage() {
|
|
return null
|
|
}
|