ludgart
ludgart
NNuxt
Created by ludgart on 12/28/2024 in #❓・help
Component is already mounted, please use $fetch instead
Hello, thanks for reaching me. Sure, I can provide you an example of my setup function. It's nearly the same, as I already posted. Example setup()
async setup() {
definePageMeta({
auth: true,
layout: 'client-layout'
});

const internationalEuro = new Intl.NumberFormat('de-DE', {
style: 'currency',
currency: 'EUR'
});

const { status: exampleStatus, data: exampleData } = await useFetch('/api/example');
const { status: testStatus, data: test} = await useFetch('/api/user/test');

return {
exampleStatus,
exampleData,
testStatus,
test,
internationalEuro
};
},
async setup() {
definePageMeta({
auth: true,
layout: 'client-layout'
});

const internationalEuro = new Intl.NumberFormat('de-DE', {
style: 'currency',
currency: 'EUR'
});

const { status: exampleStatus, data: exampleData } = await useFetch('/api/example');
const { status: testStatus, data: test} = await useFetch('/api/user/test');

return {
exampleStatus,
exampleData,
testStatus,
test,
internationalEuro
};
},
8 replies
NNuxt
Created by ludgart on 12/28/2024 in #❓・help
Component is already mounted, please use $fetch instead
I already tried with the key option. Lazy option is not the way I would like to go. Data should be first rendered on server side.
8 replies
NNuxt
Created by ludgart on 9/22/2024 in #❓・help
How can I disable auto import only for the modules' folder?
Thank you!
6 replies
NNuxt
Created by ludgart on 9/22/2024 in #❓・help
How can I disable auto import only for the modules' folder?
Isn't there a option to rename the folder? I would like to go with the name
6 replies
NNuxt
Created by ludgart on 1/4/2023 in #❓・help
Cannot read properties of null
Any idea?
4 replies
NNuxt
Created by ludgart on 1/4/2023 in #❓・help
Cannot read properties of null
The thing is on my local computer, it runs without any errors. If I try to deploy the application into our Kubernetes, it starts crashing after x time and throw these errors above.
4 replies