prophesierc / space-tourism-website-main

0 stars 0 forks source link

Implement Dynamic Imports #3

Closed prophesierc closed 3 weeks ago

prophesierc commented 3 weeks ago

// Instead of this: import MyComponent from './MyComponent.vue';

// Use dynamic import like this: const MyComponent = () => import('./MyComponent.vue');

prophesierc commented 3 weeks ago

Dynamic imports caused an issue with the requests: Used defineAsyncComponent :

import { defineAsyncComponent } from 'vue'; const ImageHandler = defineAsyncComponent(() => import('@/Components/props/GeneralProps/ImageHandlerProp/ImageHandler.vue') );

Task complete with 8b424afbb2c69b7453cf0dbbd18aa0b84798d9d0