From 5384cf9969691a01577d6cc6767d9009fe465204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=98=81=ED=9B=88?= Date: Wed, 16 Oct 2024 07:35:45 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95,=20=EC=9E=84=ED=8F=AC=ED=8A=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/file-router.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8777187..4af1bd6 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build": "rimraf dist && tsc", "lint": "eslint", "format": "prettier --w 'src/**/*.{ts,tsx,js,jsx,json,css,md}'", - "build:p": "pnpm run build && npm publish" + "pub": "pnpm run build && npm publish" }, "repository": { "type": "git", diff --git a/src/file-router.tsx b/src/file-router.tsx index 9b9e00b..1af122e 100644 --- a/src/file-router.tsx +++ b/src/file-router.tsx @@ -1,4 +1,4 @@ -import React, { Suspense, useMemo } from 'react'; +import React from 'react'; import { createBrowserRouter, RouterProvider } from 'react-router-dom'; import { getRoutes } from './utils/get-routes'; @@ -14,13 +14,13 @@ export function FileRouter() { /** * 파일/폴더 정보를 읽은 후 해당 라우터 정보를 모두 가져옵니다 */ - const routes = useMemo(() => getRoutes(), []); + const routes = React.useMemo(() => getRoutes(), []); - const router = useMemo(() => createBrowserRouter(routes), [routes]); + const router = React.useMemo(() => createBrowserRouter(routes), [routes]); return ( - Loading,,,}> + Loading,,,}> - + ); }