refactor(logging): centralize console output
This commit is contained in:
@@ -11,12 +11,15 @@
|
||||
import { useEffect } from "react";
|
||||
|
||||
import { useAuthDispatch } from "./auth-context";
|
||||
import { Logger } from "@/utils";
|
||||
|
||||
const log = new Logger("StoresAuthAuthStatusChecker");
|
||||
|
||||
export function AuthStatusChecker() {
|
||||
const dispatch = useAuthDispatch();
|
||||
|
||||
useEffect(() => {
|
||||
console.log("[auth-init] mount → dispatch AuthInit");
|
||||
log.debug("[auth-init] mount → dispatch AuthInit");
|
||||
dispatch({ type: "AuthInit" });
|
||||
}, [dispatch]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user