diff --git a/client-app/pages/matcher/builderIo/builder-io.vue b/client-app/pages/matcher/builderIo/builder-io.vue index f9d7a3d84..a8d424fef 100644 --- a/client-app/pages/matcher/builderIo/builder-io.vue +++ b/client-app/pages/matcher/builderIo/builder-io.vue @@ -10,7 +10,6 @@ import { useElementVisibility } from "@vueuse/core"; import { onMounted, ref, shallowRef, watchEffect } from "vue"; import { onBeforeRouteUpdate } from "vue-router"; import { usePageHead } from "@/core/composables"; -import { IS_DEVELOPMENT } from "@/core/constants"; import { builderIOComponents } from "./customComponents"; import type { StateType } from "../priorityManager"; import type { BuilderContent } from "@builder.io/sdk-vue"; @@ -28,8 +27,8 @@ const emit = defineEmits(); const props = defineProps(); -const canShowContent = shallowRef(false); -const content = shallowRef(null); +const canShowContent = ref(false); +const content = ref(null); const isLoading = ref(false); function clearState() { @@ -57,7 +56,6 @@ async function tryLoadContent(urlPath: string) { content.value = await fetchOneEntry({ model: "page", - cacheSeconds: IS_DEVELOPMENT ? 1 : 60, apiKey: props.apiKey, options: getBuilderSearchParams(new URLSearchParams(location.search)), userAttributes: { diff --git a/package.json b/package.json index fc388bc9f..4961cd768 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ }, "dependencies": { "@apollo/client": "^3.10.5", - "@builder.io/sdk-vue": "^1.0.36", + "@builder.io/sdk-vue": "^3.0.0", "@floating-ui/vue": "^1.1.4", "@headlessui/vue": "^1.7.22", "@tailwindcss/container-queries": "^0.1.1", diff --git a/yarn.lock b/yarn.lock index b3a170d07..a9126b684 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1396,14 +1396,14 @@ __metadata: languageName: node linkType: hard -"@builder.io/sdk-vue@npm:^1.0.36": - version: 1.1.2 - resolution: "@builder.io/sdk-vue@npm:1.1.2" +"@builder.io/sdk-vue@npm:^3.0.0": + version: 3.0.0 + resolution: "@builder.io/sdk-vue@npm:3.0.0" dependencies: isolated-vm: "npm:^5.0.0" peerDependencies: vue: ">= 3" - checksum: 10c0/792eea44900f1e5e25ad17c22532c210ed5e5cf2bcbaf539be0bcf8214e84396ca331806184fa12bd313cda08301c96c260567d6553e4260c1c94c33ac7f7b6f + checksum: 10c0/3ff7c73198f9da651957fe3b167835135f0395eb42044fe35b9307816301b9e723f436f83b93d0400ba32acb29827faac9707356e5126ff92c604549531bee46 languageName: node linkType: hard @@ -14856,7 +14856,7 @@ __metadata: resolution: "vc-theme-b2b-vue@workspace:." dependencies: "@apollo/client": "npm:^3.10.5" - "@builder.io/sdk-vue": "npm:^1.0.36" + "@builder.io/sdk-vue": "npm:^3.0.0" "@commitlint/cli": "npm:^19.3.0" "@commitlint/config-conventional": "npm:^19.2.2" "@floating-ui/vue": "npm:^1.1.4"