![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
vue-async-helper
Advanced tools
Big thanx to @LinusBorg.
npm install vue-async-helper --save
assign the function to the window
so you can use it everywhere without re-importing
import VAC from 'vue-async-helper'
window.VueAsyncComponent = VAC
now replace the () => import(...)
call with VueAsyncComponent(import(...))
/* global */
Vue.component('MyComp', () => import('abc.vue')) // before
Vue.component('MyComp', VueAsyncComponent(import('abc.vue'))) // after
/* local */
components: {
MyComp: () => import('abc.vue') // before
MyComp: VueAsyncComponent(import('abc.vue')) // after
},
prop | default | description |
---|---|---|
loading | "Please Stand By..." | A component to use while the async component is loading |
error | "Something Went Wrong, Plz Try Again" | A component to use if the load fails |
delay | 200 | Delay before showing the loading component "in ms" |
timeout | 5000 | The error component will be displayed if a timeout is provided and exceeded "in ms" |
you can change the default options per call like
Vue.component('MyComp', VueAsyncComponent(import('abc.vue'), {
timeout: 1000
}))
or globally
first create a new file with the below
// vac.js
import VAC from 'vue-async-helper'
window.VueAsyncComponent = (item) => {
return VAC(item, {
loading: LoadingComp,
error: ErrorComp,
delay: 500,
timeout: 2000
})
}
next require that file and follow the usage as normal
// app,js
require('vac.js')
Vue.component('MyComp', VueAsyncComponent(import('abc.vue')))
FAQs
vuejs handling component loading state helper
The npm package vue-async-helper receives a total of 1 weekly downloads. As such, vue-async-helper popularity was classified as not popular.
We found that vue-async-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.