Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open Beginner friendly
#272 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Domain
frontend

Research direction

Read src/app/share/[shareId]/shared.tsx and src/app/share/[shareId]/shared-mobile.tsx, then check how each handles a missing timetable. Replace the render-time navigation to /404 with Next.js notFound() from next/navigation. Done when both pages use the missing-page handling described in the issue and no longer push during render.

Written by the indexing model from the issue text.

Description

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
Dominant language
TypeScript
Stars
6
Forks
27
Avg merge
1d 8h
Merged PRs (30d)
14

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeChefVIT/ffcs

All issues in CodeChefVIT/ffcs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.