-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upon reconsideration, I don't think we need to store the tasks in a map. I had thought we would use this to dedupe multiple prefetch tasks to the same URL, but we already dedupe by URL when accessing the route entry. In the future, there will also be multiple kinds of prefetch tasks, so it will be totally possible for the same URL to have multiple tasks associated with it; for example, a prefetch initiated by a <Link> entering the viewport, versus a prefetch initiated by an imperative prefetch() call. The <Link> prefetch should be cancelable, but the imperative prefetch should not. So it just makes more sense for them to be separate tasks.
- Loading branch information
Showing
2 changed files
with
27 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters