DEV Community

loading...

Discussion on: Call for JavaScript library: "navigation history"

Collapse
isaacdlyman profile image
Isaac Lyman

Would this meet your needs?

npmjs.com/package/back-forward-his...

Based on the history library, it lets you set up a listener for state change events (including back/forward), and has a handy canGoBack() method. I haven't used it, but it seems like it would work for a PWA.

Collapse
ben profile image
Ben Halpern Author

Oh it just might be, I'll check it out in more detail tomorrow.

P.S. I owe you an email reply. I'll get to that tomorrow too 😊