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');