Open
Conversation
JoviDeCroock
commented
Mar 24, 2026
| path, | ||
| query: Object.fromEntries(u.searchParams), | ||
| route: (url, replace) => route({ url, replace }), | ||
| back: () => { |
Member
Author
There was a problem hiding this comment.
canGoBack or get canGoBack could rely on history.length being > 1 if we also want to support that API surface
Member
There was a problem hiding this comment.
I don't see too much of a need personally, though wouldn't hurt if added either
rschristian
approved these changes
Mar 24, 2026
| path: string; | ||
| query: Record<string, string>; | ||
| route: (url: string, replace?: boolean) => void; | ||
| back: () => void; |
Member
There was a problem hiding this comment.
Should we also offer .forward() at the same time for balance?
Member
wut the heck, wild |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Resolves #58
I am pretty confused by this, it looks like web-test-runners headless browser does not support
history.back()properly. When we call it, it will never fire a popstate event. I verified this feature working by using an html file and trying it out.The html file