mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-07 14:10:43 -03:00
correjidas algunas cosas del ssr y correjido que no andaba el token
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
let showCrearPost = $state(false);
|
||||
|
||||
let data = $derived(page.data);
|
||||
$inspect(data);
|
||||
|
||||
$effect(() => {
|
||||
obtenerPosts();
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
import { updatePost } from '@/hooks/updatePost';
|
||||
import Separator from '@/components/ui/separator/separator.svelte';
|
||||
import { page } from '$app/state';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
export const ssr = false;
|
||||
interface props {
|
||||
data: {
|
||||
htag: string;
|
||||
|
||||
@@ -2,6 +2,8 @@ import { obtenerPostPorId } from '@/hooks/obtenerPostPorId.js';
|
||||
import { obtenerRespuestasPorId } from '@/hooks/obtenerRespuestasPorId';
|
||||
import { error } from '@sveltejs/kit';
|
||||
|
||||
export const ssr = false;
|
||||
|
||||
export async function load({ params, fetch, depends }) {
|
||||
let ret = await obtenerPostPorId(params.idpost, fetch, depends);
|
||||
if (ret == null) return error(404, 'no existe un post con ese id.');
|
||||
|
||||
Reference in New Issue
Block a user