첫 커밋

This commit is contained in:
focp212@naver.com
2025-09-05 15:36:48 +09:00
commit 05238b04c1
825 changed files with 176358 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
/* eslint-disable react-hooks/exhaustive-deps */
import { useEffect } from 'react';
import { useNavigate } from 'react-router';
import { StorageKeys } from '@/shared/constants/local-storage';
import useLocalStorageState from 'use-local-storage-state';
export const useRedirect = () => {
const navigate = useNavigate();
const [path, , { removeItem }] = useLocalStorageState(StorageKeys.RedirectPath);
useEffect(() => {
if(path){
// navigate(path);
removeItem();
}
}, [path]);
};