mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
esta fixeado el que salia / vacio o con posts de otras paginas
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
import PostCard from '@/components/PostCard.svelte';
|
||||
import ModalEditar from './[perfil]/modalEditar.svelte';
|
||||
import { sesionStore } from '@/stores/usuario';
|
||||
import { posts, updatePostStore, loadingPosts } from '@/stores/posts';
|
||||
import { posts, updatePostStore, loadingPosts, resetPosts } from '@/stores/posts';
|
||||
import { updatePost } from '@/hooks/updatePost';
|
||||
import { loadMorePosts } from '@/hooks/loadMorePosts';
|
||||
import type { Post } from '../types';
|
||||
@@ -20,6 +20,7 @@
|
||||
let mensajeError = $state('');
|
||||
let sentinel: HTMLDivElement;
|
||||
|
||||
resetPosts();
|
||||
$effect(() => {
|
||||
loadMorePosts();
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { resetPosts } from '@/stores/posts';
|
||||
|
||||
//export const ssr = true;
|
||||
export async function load({}) {
|
||||
resetPosts();
|
||||
}
|
||||
// export async function load({}) {}
|
||||
|
||||
Reference in New Issue
Block a user