Skip to content

fix: /search crashed because ResultCard used a hook on the server - #34

Merged
im-rk merged 1 commit into
mainfrom
fix/search-results-server-component
Oct 3, 2026
Merged

im-rk merged 1 commit into
mainfrom
fix/search-results-server-component

Conversation

@im-rk

@im-rk im-rk commented Oct 3, 2026

Copy link
Copy Markdown
Member

What

Hotfix. /search (Find results and the Ask page) crashed with "Something went wrong" in production since the data saver release (#30): ResultCard calls the useLiteUrl() hook but had no "use client", so rendering it on the server threw. Type-check and lint can't see this, and the smoke tests weren't re-run after that release.

Fix

  • ResultCard is now a client component.
  • tests/unit/client-boundary.test.ts fails the build for any file that calls a hook without "use client" (verified: it fails on the broken version).
  • CHANGELOG and TESTING note a post-deploy smoke run.

Verified

Locally, /search renders results for three queries (48, 28 and 22 result links) where it previously showed the error page.

Under the 20-file guideline on purpose: this is a production outage on the core flow, so it ships alone and first.

@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pravaha Ready Ready Preview Oct 3, 2026 10:17am UTC

@im-rk
im-rk merged commit 925e016 into main Oct 3, 2026
3 checks passed
@im-rk
im-rk deleted the fix/search-results-server-component branch October 3, 2026 10:18

This branch was successfully deployed

1 active deployment
Preview — 5bfbc543 Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant