-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor(router-core): head, scripts, headers are executed in parallel and can skip store update #4925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Sheraff
merged 16 commits into
main
from
refactor-router-core-execute-head-skip-updates
Aug 15, 2025
+110
−71
Merged
refactor(router-core): head, scripts, headers are executed in parallel and can skip store update #4925
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
00e4a8a
refactor(router-core): head, scripts, headers are executed in paralle…
Sheraff 265bd21
ci: apply automated fixes
autofix-ci[bot] 6262e0b
dont force executeHead to be async
Sheraff a5f1810
ci: apply automated fixes
autofix-ci[bot] f1d0bb3
debug: does it work serially?
Sheraff f4bfcc8
Revert "debug: does it work serially?"
Sheraff 0145ed1
is it actually a forced update issue?
Sheraff 2b5ee89
Revert "is it actually a forced update issue?"
Sheraff 5bb291b
is it the non reactive update order?
Sheraff 120d3dd
Revert "is it the non reactive update order?"
Sheraff 7b667f0
Merge branch 'main' into refactor-router-core-execute-head-skip-updates
Sheraff aefd873
Merge branch 'main' into refactor-router-core-execute-head-skip-updates
Sheraff b706259
sometimes match doesnt exist, when redirecting during a preload
Sheraff 78802ef
ci: apply automated fixes
autofix-ci[bot] 908c19d
Merge branch 'main' into refactor-router-core-execute-head-skip-updates
Sheraff 4882c46
redirection in preload from 11 to 8 updates
Sheraff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why no
await Promise.all()
?personally, i like async/await syntax more than "then".
unless there is a technical reason?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we use
await
here, the function needs to beasync
, which means that it will always return aPromise
, even if we returned early. I'd like to be able to do theif('then' in foo)
thing where this function is called, but we can't do that if the function isasync
.