Anjjar
Anjjar
NNuxt
Created by hz2222 on 6/13/2024 in #❓・help
In a Nuxt.js application with multiple pages, what rendering mode do you recommend and why?
Hi @hz2222 go with the universal rendering. It makes your app more performante and it's good SEO Here's the nuxt docs : https://nuxt.com/docs/guide/concepts/rendering#universal-rendering
2 replies
NNuxt
Created by DraftMan on 5/28/2024 in #❓・help
Nuxt 3 CSS loading & CLS issues
Are these styles (entry.css, index.css) separate files or in components style ?
18 replies
NNuxt
Created by DraftMan on 5/28/2024 in #❓・help
Nuxt 3 CSS loading & CLS issues
Can you share more information about nuxt.config.ts and the index page ? For more context on the application
18 replies
NNuxt
Created by El Jovial on 5/30/2024 in #❓・help
Transition layout creates white background flash
It's normal because you set opacity: 0 Here an example that might help you : https://stackblitz.com/edit/unordered-nested-routes
3 replies
NNuxt
Created by salomon_. on 5/28/2024 in #❓・help
How to manage 'remote' localization
How does your CMS handle local data?
5 replies
NNuxt
Created by Gumaa on 5/27/2024 in #❓・help
What is a standard way of handling typescript in Nuxt3
Yes, you can simply create your types in the types directory and import them wherever you need them.
4 replies
NNuxt
Created by DraftMan on 5/28/2024 in #❓・help
Nuxt 3 CSS loading & CLS issues
Try to identify the component(s) causing the layout shift problem. You can comment one component at a time until you find the culprit.
18 replies
NNuxt
Created by salomon_. on 5/28/2024 in #❓・help
How to manage 'remote' localization
Hello again, Yes, i18n is exactly what you need. It lets you manage the language data to be displayed to the user. Here's the scenario: a user whose default language is English (EN) uses your application. The application must be able to retrieve data for EN only (retrieving data for all locales will hurt the application performance). Then, if the same user decides to change language, the application will retrieve the corresponding data.
5 replies
NNuxt
Created by Aleksandar Brkić on 5/27/2024 in #❓・help
Unknown order of nested routes
The issue is the lack of order. Here's how I approached this problem and turned the route params into an object: https://stackblitz.com/edit/github-69lvd3-fjxybg?file=README.md
7 replies
NNuxt
Created by Aleksandar Brkić on 5/27/2024 in #❓・help
Unknown order of nested routes
Did you try to get the filters by the prefix from the route ? something like this:
index/
[...filters].vue
index/
[...filters].vue
And you can catch the route:
// Route example : "/time-15-23/latitude-40-50/longitude-20-30"
const { filters} = route.params; // result = ["time-15-23", "latitude-40-50", "longitude-20-30"]
// Route example : "/time-15-23/latitude-40-50/longitude-20-30"
const { filters} = route.params; // result = ["time-15-23", "latitude-40-50", "longitude-20-30"]
7 replies
NNuxt
Created by Kyllian on 3/29/2024 in #❓・help
LCP Insanely high with 'dynamic' text
Consider using Universal Rendering (default) and prerender the page. Fetch data from the API with the useAsyncData composable : https://nuxt.com/docs/api/composables/use-async-data
23 replies