grip
grip
NNuxt
Created by grip on 12/19/2024 in #❓・help
Set ref in useAsyncData
Aha! I thought about callonce as well. I'll try both tomorrow. Awesome alex, thanks a lot! It's a huge app and I want to create the Nuxt 3 version with as minimal changes as possible and then start rennovating on a solid foundation
26 replies
NNuxt
Created by grip on 12/19/2024 in #❓・help
Set ref in useAsyncData
Ty Alex! Yes, I was just wondering if there is a way to avoid refactoring the data fetching logic everywhere in my app for now and do it after completing the migration but it seems like I don't have an option
26 replies
NNuxt
Created by grip on 12/19/2024 in #❓・help
Set ref in useAsyncData
@kapa.ai why use transform for this task? i can set the variable directly in the body of the handler of the useAsyncData. the problem is that the data flashes when hydrating
26 replies
NNuxt
Created by grip on 12/19/2024 in #❓・help
Set ref in useAsyncData
@kapa.ai the first option didnt work. the data is there on the server but not on the client
26 replies
NNuxt
Created by grip on 12/16/2024 in #❓・help
how to add ld+json scripts in nuxt3
its about json ld. an entry like this
{
type: 'application/ld+json',
json: {
'@context': 'https://schema.org/',
'@type': 'WebSite',
url: 'https://example.com/',
logo: 'https://example.com/static/logo-square.png',
potentialAction: {
'@type': 'SearchAction',
target: {
'@type': 'EntryPoint',
urlTemplate:
'https://example.com/cars/?q={search_term_string}&from-search-engine=1'
},
'query-input': 'required name=search_term_string'
}
}
{
type: 'application/ld+json',
json: {
'@context': 'https://schema.org/',
'@type': 'WebSite',
url: 'https://example.com/',
logo: 'https://example.com/static/logo-square.png',
potentialAction: {
'@type': 'SearchAction',
target: {
'@type': 'EntryPoint',
urlTemplate:
'https://example.com/cars/?q={search_term_string}&from-search-engine=1'
},
'query-input': 'required name=search_term_string'
}
}
@kapa.ai
14 replies
NNuxt
Created by grip on 12/16/2024 in #❓・help
how to add ld+json scripts in nuxt3
i want to add script entries using useHead in nuxt 3. i nuxt 2 i had these entries. how can i transform them for compatibility with nuxt3? the json property is not supported anymore @kapa.ai
14 replies
NNuxt
Created by grip on 12/16/2024 in #❓・help
how to add ld+json scripts in nuxt3
@kapa.ai any help?
14 replies
NNuxt
Created by grip on 12/11/2024 in #❓・help
Migrating nuxt2 to nuxt3 vuex store
i used useState and it worked, thanks @kapa.ai
34 replies
NNuxt
Created by grip on 12/11/2024 in #❓・help
Migrating nuxt2 to nuxt3 vuex store
@kapa.ai why did you define it if its not running
34 replies
NNuxt
Created by grip on 12/11/2024 in #❓・help
Migrating nuxt2 to nuxt3 vuex store
@kapa.ai in the example above, when does nuxtServerInit run?
34 replies
NNuxt
Created by grip on 12/11/2024 in #❓・help
Migrating nuxt2 to nuxt3 vuex store
@kapa.ai can i avoid using nuxt's useState and inject the state myself into window.NUXT?
34 replies
NNuxt
Created by grip on 12/11/2024 in #❓・help
Migrating nuxt2 to nuxt3 vuex store
how do i serialize my store from the server to the client side? @kapa.ai
34 replies
NNuxt
Created by grip on 12/11/2024 in #❓・help
Migrating nuxt2 to nuxt3 vuex store
how do i serialize my store from the server to the client side?
34 replies
NNuxt
Created by grip on 12/11/2024 in #❓・help
Migrating nuxt2 to nuxt3 vuex store
is there a smarter way? that does not involve refactoring all of my actions? @kapa.ai
34 replies
NNuxt
Created by grip on 12/11/2024 in #❓・help
Migrating nuxt2 to nuxt3 vuex store
is there a smarter way? that does not involve refactoring all of my actions?
34 replies
NNuxt
Created by grip on 11/25/2024 in #❓・help
Dynamically add routes in runtime based on pinia store value
@kapa.ai i dont want to add the routes to my router.options, as that would expose their urls and i dont want that. they are protected nonetheless but i dont want these urls exposed cant i use something like this nuxtApp.$router.addRoute({ path: '/admin', name: 'admin', component: '~/pages/a.vue', }); }
15 replies
NNuxt
Created by grip on 11/25/2024 in #❓・help
Dynamically add routes in runtime based on pinia store value
@kapa.ai
15 replies
NNuxt
Created by grip on 11/25/2024 in #❓・help
Dynamically add routes in runtime based on pinia store value
cant i use something like this
nuxtApp.$router.addRoute({
path: '/admin',
name: 'admin',
component: '~/pages/a.vue',
});
}
nuxtApp.$router.addRoute({
path: '/admin',
name: 'admin',
component: '~/pages/a.vue',
});
}
15 replies
NNuxt
Created by grip on 11/25/2024 in #❓・help
Dynamically add routes in runtime based on pinia store value
i dont want to add the routes to my router.options, as that would expose their urls and i dont want that. they are protected nonetheless but i dont want these urls exposed
15 replies
NNuxt
Created by grip on 6/4/2024 in #❓・help
Third-party script hydration mismatch
i managed to do something like this in the end yeah, thanks!
5 replies