history.js
history.js copied to clipboard
data is kept differently from native history
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?