github single-spa/single-spa v4.4.0

latest releases: v6.0.1, v6.0.0, v6.0.0-beta.4...
4 years ago

Features

  • Applications that fail to load will now have their loading functions retried/recalled when you navigate away from the route with the failed app and then come back to it. This is intended to make single-spa behave better when network connectivity is intermittent. (#342 via @blittle)

If using systemjs, you need to listen to application errors and then call System.delete whenever an application goes into LOAD_ERROR state. If you don't do that, SystemJS will not re-attempt the network request to download your bundle.

singleSpa.addErrorHandler(err => {
  if (singleSpa.getAppStatus(err.appOrParcelName) === singleSpa.LOAD_ERROR) {
    System.delete(System.resolve(err.appOrParcelName));
  }
})

Maintenance

  • Upgraded devDependencies (#344)
  • Added jsdelivr badge to readme (#336)

Don't miss a new single-spa release

NewReleases is sending notifications on new releases.