From 603e7e7fb1c0f2da36a758db92f6cca84fee68bb Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Sun, 14 May 2023 23:22:54 +0200 Subject: [PATCH] feat(nuxt): allow keeping fallback for `NuxtClientFallback` (#20336) --- .../2.components/1.nuxt-client-fallback.md | 3 +++ .../app/components/client-fallback.client.ts | 17 +++++++++++------ .../app/components/client-fallback.server.ts | 4 ++++ test/basic.test.ts | 2 ++ test/fixtures/basic/pages/client-fallback.vue | 10 ++++++++++ 5 files changed, 30 insertions(+), 6 deletions(-) diff --git a/docs/3.api/2.components/1.nuxt-client-fallback.md b/docs/3.api/2.components/1.nuxt-client-fallback.md index 1707e139ef7b..4abdc0d4970a 100644 --- a/docs/3.api/2.components/1.nuxt-client-fallback.md +++ b/docs/3.api/2.components/1.nuxt-client-fallback.md @@ -30,6 +30,9 @@ This component is experimental and in order to use it you must enable the `exper - **default**: `div` - **placeholder** | **fallback**: Specify fallback content to be rendered if the slot fails to render. - **type**: `string` +- **keepFallback**: Keep the fallback content if it failed to render server-side. + - **type**: `boolean` + - **default**: `false` ```vue