Skip to content

Commit

Permalink
Rename the "Data Fetching > Nuxt" page to "Nuxt > Data Fetching" to m…
Browse files Browse the repository at this point in the history
…ake room for other Nuxt-related pages
  • Loading branch information
LSViana committed Oct 29, 2024
1 parent 2197e38 commit 1277936
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions pages/experiments/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ const groups: ExperimentGroup[] = [
}
]
},
{
target: 'Data Fetching',
experiments: [
{
name: 'Nuxt',
route: '/experiments/data-fetching/nuxt'
}
]
},
{
target: 'Micro-interactions',
experiments: [
Expand Down Expand Up @@ -118,6 +109,15 @@ const groups: ExperimentGroup[] = [
route: '/experiments/threading/web-workers'
}
]
},
{
target: 'Nuxt',
experiments: [
{
name: 'Data Fetching',
route: '/experiments/nuxt/data-fetching'
}
]
}
]
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ import WlButton from '~/components/experiments/forms-input/buttons/WlButton.vue'
import WlExperimentCanvas from '~/components/shared/experiments/WlExperimentCanvas.vue'
import WlContainer from '~/components/shared/layout/WlContainer.vue'
const fetchResponse = await $fetch('/api/data-fetching/nuxt/fetch')
const fetchResponse = await $fetch('/api/nuxt/data-fetching/fetch')
const useFetchResponse = await useFetch('/api/data-fetching/nuxt/use-fetch')
const useFetchResponse = await useFetch('/api/nuxt/data-fetching/use-fetch')
// Works when `await` is used, and it's a client-side navigation.
const useLazyFetchResponse = await useLazyFetch('/api/data-fetching/nuxt/use-lazy-fetch')
const useLazyFetchResponse = await useLazyFetch('/api/nuxt/data-fetching/use-lazy-fetch')
// Add timeout to simulate.
const useAsyncDataResponse = await useAsyncData(
Expand All @@ -85,7 +85,7 @@ const listeners = {
reader?.cancel('User canceled.')
},
async request () {
const response = await $fetch<ReadableStream<Uint8Array>>('/api/data-fetching/nuxt/sse', {
const response = await $fetch<ReadableStream<Uint8Array>>('/api/nuxt/data-fetching/sse', {
method: 'POST',
responseType: 'stream'
})
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1277936

Please sign in to comment.