history.js icon indicating copy to clipboard operation
history.js copied to clipboard

data is kept differently from native history

Open tozjp opened this issue 9 years ago • 0 comments

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?

tozjp avatar Jan 21 '16 06:01 tozjp