mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
para evitar que el ts me de un error porque le estoy dando un lamda
async a $effect
This commit is contained in:
@@ -9,9 +9,10 @@
|
|||||||
import CardFooter from '@/components/ui/card/card-footer.svelte';
|
import CardFooter from '@/components/ui/card/card-footer.svelte';
|
||||||
import { posts, setPosts } from '@/stores/posts';
|
import { posts, setPosts } from '@/stores/posts';
|
||||||
|
|
||||||
$effect(async () => {
|
$effect(() => {
|
||||||
setPosts(await getPosts());
|
(async () => {
|
||||||
|
setPosts(await getPosts());
|
||||||
|
})();
|
||||||
});
|
});
|
||||||
|
|
||||||
async function getPosts() {
|
async function getPosts() {
|
||||||
|
|||||||
Reference in New Issue
Block a user