Skip to content

Instantly share code, notes, and snippets.

@nabrown
Last active March 22, 2020 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nabrown/cfdeb31c5ed8fbe52240e63bb2e5aea7 to your computer and use it in GitHub Desktop.
Save nabrown/cfdeb31c5ed8fbe52240e63bb2e5aea7 to your computer and use it in GitHub Desktop.
Test the Loading and Error bits of Vue async components
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