Migrate to Svelte 4

This commit is contained in:
2024-01-22 16:26:06 +01:00
parent 049cd86ae0
commit f1cb0b2159
5 changed files with 420 additions and 40 deletions

View File

@ -18,7 +18,9 @@
$: disabled = !moreAvailable || isLoading;
$: title = moreAvailable ? 'Load More' : 'There be dragons!';
const dispatch = createEventDispatcher();
const dispatch = createEventDispatcher<{
loadOlderPosts: string;
}>();
function loadOlderPosts() {
dispatch('loadOlderPosts');

View File

@ -160,7 +160,7 @@
{#each data.posts as post (post.url)}
<div
class="post"
transition:edgeFly={{
transition:edgeFly|global={{
y: 10,
created_at: post.created_at,
duration: 300,