Closed mikemellor11 closed 2 years ago
Hmm this may cause issues. I would need to find a different way to check if a push happend
Might be fixed in c6544c070d00907e87c1113ad01025fdcdfe1e34
Will test later.
Fixed and published in v1.3.1
Looks to be working perfectly, thanks for the fast response.
Difficult to replicate with a failing test case as it doesn't seem jest/puppetteer has this same limitation but in the latest chrome and firefox when you get to 50 routes navigated too the length of
window.history.length
will always be 50 from then on. This then means the push method in this library no longer pushes anything to the session storage as the check forpreviousBrowserHistoryLength
againstwindow.history.length
will always return truehttps://www.geeksforgeeks.org/html-dom-history-length-property/#:~:text=The%20History%20length%20property%20in,can%20be%20displayed%20in%2050.