Last active
March 22, 2020 19:39
-
-
Save nabrown/cfdeb31c5ed8fbe52240e63bb2e5aea7 to your computer and use it in GitHub Desktop.
Test the Loading and Error bits of Vue async components
This file contains hidden or 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
const asyncComponentTester = function(importPromise, latency){ | |
return new Promise((resolve) => { | |
setTimeout(() => { | |
resolve(importPromise) | |
}, latency) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment