From 3c87b75784a693157937aff51c0f548932c7fe6b Mon Sep 17 00:00:00 2001 From: julien huang Date: Sun, 16 Apr 2023 22:59:55 +0200 Subject: [PATCH 1/6] feat(nuxt): add keep-fallback strategy --- docs/3.api/2.components/1.nuxt-client-fallback.md | 3 +++ .../nuxt/src/app/components/client-fallback.client.ts | 10 +++++++++- .../nuxt/src/app/components/client-fallback.server.ts | 4 ++++ test/basic.test.ts | 3 ++- test/fixtures/basic/pages/client-fallback.vue | 10 ++++++++++ 5 files changed, 28 insertions(+), 2 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..c79bc368b2bd 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` +- **strategy**: Specify a strategy to adopt once in client-side. By default it tries to render the slot if it fails in client-side but your can choose to keep the fallback content by setting this prop to `keep-fallback` + - **type**: `string` + - **default**: `default` ```vue