Add more test coverage for non-Partial Prefetching behavior (#100133)
When working on some upcoming refactors of the prefetching
implementation, I discovered some cases scenarios where we didn't have
test coverage of non-Partial Prefetch behavior. This adds new tests to
ensure the behavior does not regress:
- A `prefetch={true}` link fetches only the dynamic data that a default
prefetch of the same URL left out, and a default link doesn't re-request
what a `prefetch={true}` link already fetched.
- Back/forward navigations are served from the back/forward cache
without requests.
- A loading-boundary prefetch counts as complete for the segments above
the boundary, so the navigation requests only the page below it.
Showing
Please
register
or
sign in
to comment