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 π
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
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.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 π