From 40c920f184cc9050ad9eb79f9f34c12329601ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Fri, 20 May 2022 10:31:05 +0100 Subject: [PATCH] docs: use named export instead of default (#1615) --- website/docs/sdks/proxy-svelte.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/website/docs/sdks/proxy-svelte.md b/website/docs/sdks/proxy-svelte.md index c3e24722b5..68b7132ca6 100644 --- a/website/docs/sdks/proxy-svelte.md +++ b/website/docs/sdks/proxy-svelte.md @@ -28,7 +28,7 @@ Import the provider like this in your entrypoint file (typically index.svelte): onMount(async () => { const proxyClientSvelte = await import('@unleash/proxy-client-svelte'); - FlagProvider = proxyClientSvelte.default; + ({ FlagProvider } = proxyClientSvelte); }); const config = { @@ -40,7 +40,7 @@ Import the provider like this in your entrypoint file (typically index.svelte): }; - + ``` @@ -55,7 +55,7 @@ Alternatively, you can pass your own client in to the FlagProvider: onMount(async () => { const proxyClientSvelte = await import('@unleash/proxy-client-svelte'); - FlagProvider = proxyClientSvelte.default; + ({ FlagProvider } = proxyClientSvelte); }); const config = { @@ -69,7 +69,7 @@ Alternatively, you can pass your own client in to the FlagProvider: const client = new UnleashClient(config); - + ``` @@ -82,7 +82,7 @@ By default, the Unleash client will start polling the Proxy for toggles immediat - passing a client instance to the `FlagProvider` ```html - + ``` @@ -106,7 +106,7 @@ To start the client, use the client's `start` method. The below snippet of pseud }); - + ``` @@ -165,7 +165,7 @@ Follow the following steps in order to delay rendering until the flags have been {#if !$flagsReady} {:else} - + {/if} ``` @@ -193,4 +193,4 @@ Follow the following steps in order to update the unleash context: run(); } -``` \ No newline at end of file +```