Skip to content

Commit 519759d

Browse files
examples(svelte-query): fix svelte auto-refetching styling (#7951)
1 parent 73258c6 commit 519759d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/svelte/auto-refetching/src/routes/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
width:.75rem;
5151
height:.75rem;
5252
background: {$todos.isFetching ? 'green' : 'transparent'};
53-
transition:: {!$todos.isFetching ? 'all .3s ease' : 'none'};
53+
transition: {!$todos.isFetching ? 'all .3s ease' : 'none'};
5454
border-radius: 100%;
55-
transform: 'scale(2)"
55+
transform: scale(1.5)"
5656
></span>
5757
</div>
5858
</label>

examples/svelte/auto-refetching/src/routes/api/data/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export const GET: RequestHandler = async ({ url }) => {
1515
} else if (clear) {
1616
list.items = []
1717
}
18-
await new Promise((r) => setTimeout(r, 1000))
18+
await new Promise((r) => setTimeout(r, 200))
1919
return json(list, { status: 200 })
2020
}

0 commit comments

Comments
 (0)