Post
So excited by this. Related, but kind of general question: how stable is the API? I've been going through the GitHub issues for how I might implement a "rollback" after an intercept, and it looks like there have been a few of solutions: commit: 'after-transition', event.commit(), & precommitHandler.
If you reject during the precommitHandler, then the navigation is aborted, but if you want to 'roll back' after commit, then you'll need to traverse back or replace the current history state. In terms of stability, there's always the possibility of bugs, but the methods won't change now.
0 reposts0 likes