-
-
Save lmiller1990/1414dad055aee7e6ac29dee6094610f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function beforeEach((to, from, next) { | |
if (to.matched.some(record => record.meta.shouldBustCache)) { | |
bustCache() | |
} | |
next() | |
} | |
router.beforeEach((to, from, next) => beforeEach(to, from, next)) | |
export default router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment