TanStack / TanStack/router

Crash when navigating to route which has server POST handler

Open
#7,642 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.1k
Forks
1.9k
Avg merge
1d 20h
Merged PRs (30d)
143

Description

Which project does this relate to?

Start

Describe the bug

When navigating to the route which has POST handler in browser the page crashes.

Complete minimal reproducer

https://github.com/valerii15298/tss-repros/tree/crash-get-server-route

Steps to Reproduce the Bug

In the repro got to /test route.
The page crashes

Expected behavior

The page should show not found component

Screenshots or Videos

No response

Platform
  • Router / Start Version: look into package.json
  • OS: macOS
  • Browser: any
  • Browser Version: any
  • Bundler: vite
  • Bundler Version: look into package json
Additional context

No response

Contributor guide

Open the contributing guide

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.

Research direction

Start with the linked minimal reproducer and its package.json, then navigate to the /test route. Trace the behavior when that route has a server POST handler and compare it with the expected not found component. Done when the route no longer crashes in the reported browser setup and shows the not found component.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript, vite
Domain
backend, frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.