biome format --write

This commit is contained in:
Henry Jameson 2026-01-06 16:22:52 +02:00
commit 9262e803ec
415 changed files with 54076 additions and 17419 deletions

View file

@ -7,23 +7,24 @@ import { defineAsyncComponent, shallowReactive, h } from 'vue'
* this should be done from error component but could be done from loading or
* actual target component itself if needs to be.
*/
function getResettableAsyncComponent (asyncComponent, options) {
const asyncComponentFactory = () => () => defineAsyncComponent({
loader: asyncComponent,
...options
})
function getResettableAsyncComponent(asyncComponent, options) {
const asyncComponentFactory = () => () =>
defineAsyncComponent({
loader: asyncComponent,
...options,
})
const observe = shallowReactive({ c: asyncComponentFactory() })
return {
render () {
render() {
// emit event resetAsyncComponent to reloading
return h(observe.c(), {
onResetAsyncComponent () {
onResetAsyncComponent() {
observe.c = asyncComponentFactory()
}
},
})
}
},
}
}