From 891ba880e29bbf863e988e83d14a40fa81e3b4fb Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 18 May 2023 11:46:54 +0100 Subject: [PATCH] docs: remove warning around `experimental.renderJsonPayloads` --- docs/3.api/1.composables/use-nuxt-app.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/3.api/1.composables/use-nuxt-app.md b/docs/3.api/1.composables/use-nuxt-app.md index 70d4777d4..fb1b037a7 100644 --- a/docs/3.api/1.composables/use-nuxt-app.md +++ b/docs/3.api/1.composables/use-nuxt-app.md @@ -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.