It would be great if a callback that would return a promise could be provided to the registerHandler function so that the component would only be loaded if it is actually required. Basically something like this:
OCA.Viewer.registerHandler({
id: 'richdocuments',
group: null,
mimes: supportedMimes,
component: () => import('./Office.vue')
})
It would be great if a callback that would return a promise could be provided to the registerHandler function so that the component would only be loaded if it is actually required. Basically something like this:
https://vuejs.org/v2/guide/components-dynamic-async.html#Async-Components