fix: async innecesario
This commit is contained in:
1 parent
ccebc7934c
commit
e08cb337d0
1 file changed
+2
-2
@@ -4,8 +4,8 @@
|
|||||||
import { Content } from '@/components/ui/card';
|
import { Content } from '@/components/ui/card';
|
||||||
import { apiBase } from '@/stores/url';
|
import { apiBase } from '@/stores/url';
|
||||||
|
|
||||||
$effect(async()=>{
|
$effect(()=>{
|
||||||
await getPosts();
|
getPosts();
|
||||||
});
|
});
|
||||||
|
|
||||||
let posts: Post[] = $state([]);
|
let posts: Post[] = $state([]);
|
||||||
|
|||||||
Reference in new issue
Block a user