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

[Question] why is initial page load a POP #96

Closed
aszwemin opened this issue Oct 12, 2015 · 4 comments
Closed

[Question] why is initial page load a POP #96

aszwemin opened this issue Oct 12, 2015 · 4 comments

Comments

@aszwemin
Copy link

If I print out location.action on the initial load, it will show POP? Is that a standard or an issue?

@mjackson
Copy link
Member

In general, most actions are a POP. Any time you use go(n) the action will be a POP. So, for example, both the back and forward buttons in a web browser trigger a POP action. This might seem like a bit of a misnomer if you're thinking about it in terms of a stack, where the word "pop" means to take an item from the top of the stack. But if you think about actions in terms of a pointer into the history stack it tends to make more sense.

@aszwemin
Copy link
Author

Thanks for that. So is there any way to determine that something is a back button?

@mjackson
Copy link
Member

See #36

@aszwemin
Copy link
Author

👍

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants