Category · 27 articles

Nuxt

Articles in the category Nuxt.

Nuxt Tip: Difference Between useFetch and event.$fetch Image

Nuxt Tip: Difference Between useFetch and event.$fetch

Understand the key distinction between useFetch and event.$fetch in Nuxt. Learn why using event.$fetch for server-side API calls is the recommended approach for better performance and SSR correctness.
Nuxt Tip: Accessing Pinia Store in Production Build Image

Nuxt Tip: Accessing Pinia Store in Production Build

A concise guide on how to access your Pinia store within a Nuxt production build.
Nuxt Tip: Managing Page Load States With useLoadingIndicator Image

Nuxt Tip: Managing Page Load States With useLoadingIndicator

Learn how to use the useLoadingIndicator composable in Nuxt to access and manage the loading state of your app's pages. Improve user experience by displaying loading indicators and handling transitions seamlessly.
Nuxt Tip: Parallel Fetch Requests Image

Nuxt Tip: Parallel Fetch Requests

Learn to wield useAsyncData along with Promise.all() to load data faster with parallel requests in your Nuxt application.
Nuxt Tip: Fetch Data on the Server Before App Start Image

Nuxt Tip: Fetch Data on the Server Before App Start

Learn how to pre-fetch data on the server before app start in Nuxt 3+ to improve load times and user experience.
Nuxt Tip: Validate Data in Your Server Routes Image

Nuxt Tip: Validate Data in Your Server Routes

Ensure that your data are valid and safe in your Nuxt server routes before processing them.
Nuxt Tip: Change Status Code of the Response Image

Nuxt Tip: Change Status Code of the Response

`setResponseStatus` is a Nuxt composable to set the status code and (and optionally the status message) of the response.
Nuxt Tip: Run Code Once During SSR or CSR Image

Nuxt Tip: Run Code Once During SSR or CSR

Since Nuxt 3.9 you can use the useOnce composable to run a given function or block of code once during server-side rendering or client-side navigation.
Nuxt Tip: Use Environment-Specific Configurations Image

Nuxt Tip: Use Environment-Specific Configurations

It sometimes happens that you need to have different configurations for different environments in your Nuxt.js application. Therefore, Nuxt provides fully typed, per-environment overrides for your Nuxt configuration.
Nuxt Tip: How Nuxt Uses Nitro, h3 and ofetch Internally Image

Nuxt Tip: How Nuxt Uses Nitro, h3 and ofetch Internally

Nitro, h3 and ofetch are UnJS packages that are used to power the Nuxt 3 server engine.