Skip to content

Commit

Permalink
docs: remove warning around experimental.renderJsonPayloads
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 18, 2023
1 parent 37b4e32 commit 891ba88
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/3.api/1.composables/use-nuxt-app.md
Expand Up @@ -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:

Expand All @@ -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.
Expand Down

0 comments on commit 891ba88

Please sign in to comment.