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

data is kept differently from native history #454

Open
tozjp opened this issue Jan 21, 2016 · 0 comments
Open

data is kept differently from native history #454

tozjp opened this issue Jan 21, 2016 · 0 comments

Comments

@tozjp
Copy link

tozjp commented Jan 21, 2016

1.History.replace({foo: "bar"}); on a.html.
2. move to b.html.
3. move to a.html again by clicking an anchor.
4. History.getState().data returns {foo: "bar"}

1 and 4 isn't same history stack.
I expect of data object to be empty.

The native history.state returns the object that has passed to history.replaceState() only when history stack is same.

Is there any way to do something only when move to the stack when History.replaceState() has called?

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

1 participant