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 { apiBase } from '@/stores/url';
|
||||
|
||||
$effect(async()=>{
|
||||
await getPosts();
|
||||
$effect(()=>{
|
||||
getPosts();
|
||||
});
|
||||
|
||||
let posts: Post[] = $state([]);
|
||||
|
||||
Reference in new issue
Block a user