mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
docs: remove warning around experimental.renderJsonPayloads
This commit is contained in:
parent
37b4e32a6e
commit
891ba880e2
@ -113,8 +113,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
})
|
||||
```
|
||||
|
||||
::alert
|
||||
Normally `payload` must contain only plain JavaScript objects. But by setting `experimental.renderJsonPayloads`, it is possible to use more advanced types, such as `ref`, `reactive`, `shallowRef`, `shallowReactive` and `NuxtError`.
|
||||
It is also possible to use more advanced types, such as `ref`, `reactive`, `shallowRef`, `shallowReactive` and `NuxtError`.
|
||||
|
||||
You can also add your own types, with a special plugin helper:
|
||||
|
||||
@ -129,8 +128,6 @@ export default definePayloadPlugin((nuxtApp) => {
|
||||
})
|
||||
```
|
||||
|
||||
::
|
||||
|
||||
### `isHydrating`
|
||||
|
||||
Use `nuxtApp.isHydrating` (boolean) to check if the Nuxt app is hydrating on the client side.
|
||||
|
Loading…
Reference in New Issue
Block a user