Closed ffxsam closed 1 month ago
Appreciate the PR @ffxsam! Sorry fro the delay in getting to this, I let the project lapse and currently in the process of trying to bring everything up to date.
Since this is a PR for the Vue 2 version of the boilerplate, I'm going to close this so we can focus on the Vue 3 boilerplate going forward. Hope all is well!
This is a super weird one I encountered while building my app. I noticed when I was logging out and being redirected from
/tracks
to/login
, theTracks
view'screated()
lifecycle hook was being called as I was leaving the page. After adding thenext()
calls as in this PR, it fixed the issue.My only guess is that the
next()
didn't happen quickly enough and that somehow resulted in the view'screated()
lifecycle hook being called, though I'm not really clear on why. Adding thenext()
call worked. And I figured, looking at line 92 (next(...args)
before thereject()
call), it made sense to callnext()
before theresolve()
calls as well.