@nuxt/docs-nightly 4.0.0-29144650.ca2dff25 → 4.0.0-29146909.8ec609ca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2.guide/3.going-further/1.events.md +1 -1
- package/2.guide/3.going-further/3.modules.md +1 -1
- package/3.api/2.composables/use-async-data.md +1 -1
- package/3.api/2.composables/use-fetch.md +1 -1
- package/3.api/5.kit/11.nitro.md +1 -1
- package/3.api/6.nuxt-config.md +2956 -3
- package/package.json +1 -1
|
@@ -614,7 +614,7 @@ export default defineNuxtModule({
|
|
|
614
614
|
interface MyModuleNitroRules {
|
|
615
615
|
myModule?: { foo: 'bar' }
|
|
616
616
|
}
|
|
617
|
-
declare module '
|
|
617
|
+
declare module 'nitropack/types' {
|
|
618
618
|
interface NitroRouteRules extends MyModuleNitroRules {}
|
|
619
619
|
interface NitroRouteConfig extends MyModuleNitroRules {}
|
|
620
620
|
}
|
|
@@ -98,7 +98,7 @@ The `handler` function should be **side-effect free** to ensure predictable beha
|
|
|
98
98
|
Which only caches data when `experimental.payloadExtraction` of `nuxt.config` is enabled.
|
|
99
99
|
- `pick`: only pick specified keys in this array from the `handler` function result
|
|
100
100
|
- `watch`: watch reactive sources to auto-refresh
|
|
101
|
-
- `deep`: return data in a deep ref object. It is `false` by default to return data in a shallow ref object
|
|
101
|
+
- `deep`: return data in a deep ref object. It is `false` by default to return data in a shallow ref object, which can improve performance if your data does not need to be deeply reactive.
|
|
102
102
|
- `dedupe`: avoid fetching same key more than once at a time (defaults to `cancel`). Possible options:
|
|
103
103
|
- `cancel` - cancels existing requests when a new one is made
|
|
104
104
|
- `defer` - does not make new requests at all if there is a pending request
|
|
@@ -132,7 +132,7 @@ All fetch options can be given a `computed` or `ref` value. These will be watche
|
|
|
132
132
|
Which only caches data when `experimental.payloadExtraction` of `nuxt.config` is enabled.
|
|
133
133
|
- `pick`: only pick specified keys in this array from the `handler` function result
|
|
134
134
|
- `watch`: watch an array of reactive sources and auto-refresh the fetch result when they change. Fetch options and URL are watched by default. You can completely ignore reactive sources by using `watch: false`. Together with `immediate: false`, this allows for a fully-manual `useFetch`. (You can [see an example here](/docs/getting-started/data-fetching#watch) of using `watch`.)
|
|
135
|
-
- `deep`: return data in a deep ref object. It is `false` by default to return data in a shallow ref object
|
|
135
|
+
- `deep`: return data in a deep ref object. It is `false` by default to return data in a shallow ref object, which can improve performance if your data does not need to be deeply reactive.
|
|
136
136
|
- `dedupe`: avoid fetching same key more than once at a time (defaults to `cancel`). Possible options:
|
|
137
137
|
- `cancel` - cancels existing requests when a new one is made
|
|
138
138
|
- `defer` - does not make new requests at all if there is a pending request
|
package/3.api/5.kit/11.nitro.md
CHANGED
|
@@ -117,7 +117,7 @@ export default defineNuxtModule({
|
|
|
117
117
|
|
|
118
118
|
```ts twoslash
|
|
119
119
|
// @errors: 2391
|
|
120
|
-
import type { NitroDevEventHandler } from '
|
|
120
|
+
import type { NitroDevEventHandler } from 'nitropack/types'
|
|
121
121
|
// ---cut---
|
|
122
122
|
function addDevServerHandler (handler: NitroDevEventHandler): void
|
|
123
123
|
```
|