Skip to content

Bug: "Try TanStack MCP" button freezes the entire site #681

@Kyujenius

Description

@Kyujenius

Description

Clicking or even hovering over the "Try TanStack MCP" button in the navbar causes the entire site to freeze/become unresponsive. This is a critical UX bug affecting all visitors.

Steps to Reproduce

  1. Go to https://tanstack.com
  2. Hover over the "Try TanStack MCP" button in the navbar (top right, green button with "Alpha" badge)
  3. Expected: Navigate to MCP landing page
  4. Actual: Page freezes and becomes unresponsive

Video

2026-01-25.mov

Root Cause Analysis

This regression was introduced in commit 1889db30 ("builder alpha.2" - Jan 21, 2026).

Timeline:

  • a71ea35 (Jan 11): MCP library added with its own landing page (McpLanding.tsx) and docs (docs/mcp/)
  • 1889db3 (Jan 21): handleRedirects added to MCP config, redirecting all /mcp paths to /cli/latest/docs/mcp/*

(There is no PR Link because It's all done by Maintainer 😄 )

What went wrong:

  1. handleRedirects in libraries.ts throws redirect() for any /mcp or /mcp/latest path
  2. TanStack Router's Link component preloads routes on hover
  3. During preload, beforeLoad in $version.tsx calls library.handleRedirects()
  4. throw redirect() during preload causes an unhandled exception → page freeze

Additionally:

  • McpLanding component exists but was never registered in landingComponents in $version.index.tsx
  • MCP has its own docs in docs/mcp/ but handleRedirects tries to redirect to CLI docs

Suggested Fix

  1. Remove handleRedirects from MCP config (MCP has its own docs)
  2. Add mcp to landingComponents in $version.index.tsx

PR #678 by @jakebodea addresses this issue.

Environment

  • Browser: All browsers
  • Route: Any page with navbar visible
  • Trigger: Hover or click on "Try TanStack MCP" button

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions