Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Shared timetable pages use router.push during render to nonexistent /404 route

オープン 初心者向け
#272 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Rithish-2914 がすでに取り組んでいます。

2026年10月28日 から。

  • #326 @Rithish-2914 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
next.js, react, typescript
領域
frontend

調査の方向性

src/app/share/[shareId]/shared.tsx と src/app/share/[shareId]/shared-mobile.tsx を読み、それぞれが時間割の欠落をどのように処理するか確認します。レンダリング中に /404 へ遷移する処理を、next/navigation からの Next.js notFound() に置き換えます。両方のページが issue で説明されているページ欠落時の処理を使用し、レンダリング中に遷移しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description:
In shared.tsx and shared-mobile.tsx, if a timetable is not found, the code runs router.push('/404') directly inside the component render body. This violates React rendering rules (Cannot update a component while rendering a different component). Additionally, /404 is not a registered App Router page.

What needs to be done:

  • Use Next.js's built-in notFound() function from next/navigation instead of calling router.push('/404') during render.

Files:

  • src/app/share/[shareId]/shared.tsx
  • src/app/share/[shareId]/shared-mobile.tsx
主要言語
TypeScript
スター
6
フォーク
37
平均マージ
14時間 30分
マージ済み PR(30日)
38

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeChefVIT/ffcs のほかの issue

CodeChefVIT/ffcs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。