Skip to content

fix: add QueryClientProvider to SSR render tree#102

Merged
rsbh merged 1 commit into
mainfrom
fix/ssr-query-client
May 22, 2026
Merged

fix: add QueryClientProvider to SSR render tree#102
rsbh merged 1 commit into
mainfrom
fix/ssr-query-client

Conversation

@rsbh
Copy link
Copy Markdown
Member

@rsbh rsbh commented May 22, 2026

Summary

  • Wrap SSR render tree in QueryClientProvider to fix "No QueryClient set" error
  • Search component uses useQuery which requires the provider during SSR

Test plan

  • Docker build + start with Node — no SSR errors
  • All 8 smoke tests pass
  • SSR renders full HTML with sidebar, navigation, content

Generated with Claude Code

Search component uses useQuery which requires QueryClientProvider.
Was only in entry-client.tsx, now also in entry-server.tsx.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
chronicle Ready Ready Preview, Comment May 22, 2026 5:48am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 22, 2026

Warning

Rate limit exceeded

@rsbh has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 54 minutes and 48 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: fa39de9b-4fd9-4659-9716-8d54bf366053

📥 Commits

Reviewing files that changed from the base of the PR and between d7bc089 and 68e03c9.

📒 Files selected for processing (1)
  • packages/chronicle/src/server/entry-server.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ssr-query-client

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rsbh rsbh merged commit c32fa8d into main May 22, 2026
6 checks passed
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.

2 participants