\r\n\u003C/template>\r\n\r\n\u003Cscript setup>\r\n const paymentEl = ref(null)\r\n const { onLoaded } = useScriptStripe()\r\n onMounted(() => {\r\n onLoaded(async ({ Stripe }) => {\r\n alert(\"Callback was called\")\r\n const stripe = Stripe(\r\n \"pk_live_5....\",\r\n )\r\n })\r\n })\r\n\u003C/script>\r\n```\r\nThe onLoaded function does not seem to be working as the callback function is never being called \n\n### 🛠️ To reproduce\n\nhttps://stackblitz.com/edit/nuxt-starter-wozyte?file=pages%2Findex.vue,pages%2Fjs-confetti.vue\n\n### 🌈 Expected behavior\n\nI expect my callback function to be called by `onLoaded`\n\n### ℹ️ Additional context\n\n\r\nI see these warnings from the stripe SDK, maybe this is causing errors that lead to the callback function not being called? ",[3208],{"name":3146,"color":3169},"Stripe script onLoaded function not being called ","2024-09-03T17:13:20Z","https://github.com/nuxt/scripts/issues/232",{"description":3213,"labels":3214,"number":3216,"owner":3149,"repository":3150,"state":3151,"title":3217,"updated_at":3218,"url":3219,"score":3220},"1. From the main empty branch (without file), create a new file \n2. Commit this file on a new branch\n3. Come back to main empty branch\n \n\n",[3215],{"name":3146,"color":3147},565,"Error occurs when jumping to an empty branch (without files)","2023-02-15T12:31:30Z","https://github.com/nuxt/nuxt.com/issues/565",0.73369837,{"description":3222,"labels":3223,"number":3216,"owner":3149,"repository":3185,"state":3151,"title":3230,"updated_at":3231,"url":3232,"score":3220},"I want to setup test environment without rendering my index page, please add config option for setting globally default route, for example '/test' instead of '/' or option to mock `app.vue` component.\r\n\r\nSo far I figured out workaround, in `nuxt.config.ts` I am doing mocking of index page manually with hooks\r\n\r\n```\r\nhooks: {\r\n 'pages:extend'(pages: NuxtPage[]) {\r\n if (String(process.env?.TEST) === 'true') {\r\n const indexPage = pages.find((page) => page.name === 'index')\r\n const testPage = pages.find((page) => page.name === 'test')\r\n if (indexPage != null && testPage != null) {\r\n indexPage.file = testPage.file\r\n }\r\n }\r\n },\r\n },\r\n```\r\n\r\nNote this hook is not working when placed in `vitest.config.ts` overrides because function is not serializable.",[3224,3227],{"name":3225,"color":3226},"enhancement","a2eeef",{"name":3228,"color":3229},"vitest-environment","b60205","Add option to set default route or mock app.vue","2023-12-05T14:35:36Z","https://github.com/nuxt/test-utils/issues/565",["Reactive",3234],{},["Set"],["ShallowReactive",3237],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fpOZvyB9qmIZ_ztffY2nb-7rUIbLxE4LppHYbLON7KAM":-1},"/nuxt/test-utils/351"]