Files
Andrew ClarkandGitHub 3ff99bd0e8 Re-implement hmr-refresh in terms of refresh (#87135)
Based on:
- #87134 

---

hmr-refresh-reducer is identical to refresh-reducer except for the fact
that it doesn't evict the prefetch cache. So this refactors both
implementations to call the same shared function.
2025-12-15 18:27:14 -05:00

27 lines
904 B
TypeScript

import { LinkAccordion } from '../../components/link-accordion'
export default function Page() {
return (
<div>
<p>
Tests what happens if a navigation resolves to a different route than
the one that was prefetched.
</p>
<div>
<ul>
<li>
<LinkAccordion href="/mismatching-prefetch/dynamic-page/a?mismatch-redirect=./b">
<code>{`/mismatching-prefetch/dynamic-page/a ──[ redirects to ]──→ /mismatching-prefetch/dynamic-page/b`}</code>
</LinkAccordion>
</li>
<li>
<LinkAccordion href="/mismatching-prefetch/dynamic-page/a?mismatch-rewrite=./b">
<code>{`/mismatching-prefetch/dynamic-page/a ──[ rewrites to ]──→ /mismatching-prefetch/dynamic-page/b`}</code>
</LinkAccordion>
</li>
</ul>
</div>
</div>
)
}