We're a place where coders share, stay up-to-date and grow their careers.
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.
canGoBack()
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 😊
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.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 😊