diff options
| author | Fushihara <1039534+fushihara@users.noreply.github.com> | 2024-09-25 21:21:07 +0900 |
|---|---|---|
| committer | Fushihara <1039534+fushihara@users.noreply.github.com> | 2024-09-25 21:21:07 +0900 |
| commit | 914d46215fd955bc9045909d6e42bfb2f9a99331 (patch) | |
| tree | ccba56f02391527a389c84bc0cc70644a9ec088e /src/app/article/_components | |
| parent | 4ccee1438e3c341075fdcf1d62e6900eb29d1908 (diff) | |
記事データの持ち方を修正
ビルド時に1ページづつインスタンスが破棄されると思いこんでいて毎回ファイルの読み込みからやり直していた。
Diffstat (limited to 'src/app/article/_components')
| -rw-r--r-- | src/app/article/_components/articleListElement.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/article/_components/articleListElement.tsx b/src/app/article/_components/articleListElement.tsx index 0fe3d70..5437c04 100644 --- a/src/app/article/_components/articleListElement.tsx +++ b/src/app/article/_components/articleListElement.tsx @@ -5,7 +5,7 @@ dateformat.i18n.dayNames = [ '日', '月', '火', '水', '木', '金', '土', '日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日' ]; -type DisplayData = Awaited<ReturnType<ArticleLoader["loadData"]>>[number]; +type DisplayData = Awaited<ReturnType<ArticleLoader["loadData"]>>["articles"][number]; export function ArticleListElement(displayData: DisplayData[]) { return ( <table className="w-full"> |
