docs: remove warning around experimental.renderJsonPayloads

This commit is contained in:
Daniel Roe 2023-05-18 11:46:54 +01:00
parent 37b4e32a6e
commit 891ba880e2

View File

@ -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.