Skip to content

Commit

Permalink
Update App.svelte
Browse files Browse the repository at this point in the history
Updated the code with suggested review changes
  • Loading branch information
RajuPedda authored Sep 27, 2024
1 parent 03e481b commit ec8c3da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/7-webapp-features/2-fetch-data/svelte5/App.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<script>
import useFetchUsers from "./useFetchUsers.svelte.js";
const {isLoading, error, users} = $derived(useFetchUsers());
const result = useFetchUsers()
const {isLoading, error, users} = $derived(result);
</script>

{#if isLoading}
Expand Down

0 comments on commit ec8c3da

Please sign in to comment.