Skip to content

Added hashchange listener #252

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
merged 7 commits into from
Oct 23, 2019
Merged

Added hashchange listener #252

merged 7 commits into from
Oct 23, 2019

Conversation

David-OConnor
Copy link
Member

Need to make Url parsing from string work with hash and search before merging; currently treats them as part of path.

CHANGELOG.md Outdated
@@ -2,9 +2,14 @@

## v0.4.2
- Added an `Init` struct, which can help with initial routing (Breaking)
- Changed `Tag::Custom` to `Tag::from` (Breaking)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated from function to accept more input types, no other changes, i.e. no breaking changes.

@David-OConnor
Copy link
Member Author

Should now work with hash and search, but is still double-firing; I suspect the hashchange event's triggering a popstate.

@David-OConnor David-OConnor marked this pull request as ready for review October 18, 2019 05:54
@MartinKavik
Copy link
Member

@David-OConnor Ping me before merge, please, I would like to do review.

@David-OConnor
Copy link
Member Author

Ready now, assuming it works on @flosse's end.

@flosse
Copy link
Member

flosse commented Oct 19, 2019

Ready now, assuming it works on @flosse's end.

@David-OConnor thanks a lot, now it works!

@MartinKavik
Copy link
Member

I think we can merge it so we have this fix in master. We don't have wait for other PRs because of #253 (comment).

@David-OConnor David-OConnor merged commit 4f222f6 into master Oct 23, 2019
@David-OConnor David-OConnor deleted the hashchange_listener branch November 7, 2019 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants