From f0ef2cd6b5413c5b23829849af99428ad06f5cf1 Mon Sep 17 00:00:00 2001 From: RajuPedda Date: Wed, 25 Sep 2024 10:09:43 +0530 Subject: [PATCH 1/4] Update App.svelte by destructuring of an Object Destructured the response object to have a better comparison with other frameworks / libraries as the others also does the same destructuring. --- .../7-webapp-features/2-fetch-data/svelte5/App.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/7-webapp-features/2-fetch-data/svelte5/App.svelte b/content/7-webapp-features/2-fetch-data/svelte5/App.svelte index 92c0aea6..e31fc9de 100644 --- a/content/7-webapp-features/2-fetch-data/svelte5/App.svelte +++ b/content/7-webapp-features/2-fetch-data/svelte5/App.svelte @@ -1,16 +1,16 @@ -{#if response.isLoading} +{#if isLoading}

Fetching users...

-{:else if response.error} +{:else if error}

An error occurred while fetching users

-{:else if response.users} +{:else if users}