Skip to content
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

Navigate forward and back? #60

Closed
dy opened this issue Jul 17, 2019 · 2 comments
Closed

Navigate forward and back? #60

dy opened this issue Jul 17, 2019 · 2 comments

Comments

@dy
Copy link

dy commented Jul 17, 2019

Is there any way to navigate forward/back via wouter?

@molefrog
Copy link
Owner

There is! Just use standard history object methods. Like history.back() or history.go(-1). We have proper support for this behaviour in our tests:

https://github.com/molefrog/wouter/blob/master/test/use-location.test.js#L33

@dy
Copy link
Author

dy commented Jul 17, 2019

Oh! Overlooked patched popstate https://github.com/molefrog/wouter/blob/master/use-location.js#L9. Thanks @molefrog!

@dy dy closed this as completed Jul 17, 2019
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

No branches or pull requests

2 participants