fix render

This commit is contained in:
Michael Freno
2025-12-21 13:22:11 -05:00
parent 9970c69872
commit c0c1c48016
2 changed files with 30 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
import { createSignal, createEffect, Show, onMount } from "solid-js";
import { createSignal, Show, onMount } from "solid-js";
import { Title, Meta } from "@solidjs/meta";
import { useNavigate, cache, redirect } from "@solidjs/router";
import { useNavigate, redirect, query } from "@solidjs/router";
import { getEvent } from "vinxi/http";
import Eye from "~/components/icons/Eye";
import EyeSlash from "~/components/icons/EyeSlash";
@@ -23,7 +23,7 @@ type UserProfile = {
hasPassword: boolean;
};
const checkAuth = cache(async () => {
const checkAuth = query(async () => {
"use server";
const { checkAuthStatus } = await import("~/server/utils");
const event = getEvent()!;