rsnext/test/integration/router-prefetch
James Mosier f22f88fd73
Always resolve after router.prefetch() (#15448)
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
2020-07-25 04:36:43 +00:00
..
pages Always resolve after router.prefetch() (#15448) 2020-07-25 04:36:43 +00:00
test Always resolve after router.prefetch() (#15448) 2020-07-25 04:36:43 +00:00