-
+import { shallowRef, onMounted, h, defineComponent } from "vue";
+import { applyDocumentMeta } from "../utils/applyDocumentMeta";
+import { createRemoteAppComponent } from "@module-federation/bridge-vue3";
-
Player
-
Landing
+const innerComp = shallowRef
(null);
+onMounted(() => {
+ const remoteModule = createRemoteAppComponent({
+ loader: () => import("catalog/Catalog"),
+ asyncComponentOptions: {
+ loadingComponent: defineComponent({
+ name: "LoadingComponent",
+ setup() {
+ return () => h("div", "Loading catalog...");
+ },
+ }),
+ }
+ });
-
+ innerComp.value = defineComponent({
+ name: "CatalogRemoteWrapper",
+ setup() {
+ applyDocumentMeta({
+ title: "Moduflix - Início",
+ description: "Application with Vue.js",
+ });
+ return () => h(remoteModule);
+ },
+ });
+});
+
+