fix(admin): bump proton and dedupe react-query to fix runtime errors#1497
fix(admin): bump proton and dedupe react-query to fix runtime errors#1497rohilsurana wants to merge 5 commits intomainfrom
Conversation
- Add @tanstack/react-query and @connectrpc/connect-query to Vite dedupe config to prevent duplicate context instances between the app and SDK (fixes "No QueryClient set" error) - Bump @raystack/proton to match SDK version so SetOrganizationMemberRoleRequestSchema is available
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 5 minutes and 28 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR updates dependencies and Vite build configuration in the admin app. The Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
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. Comment |
Pull Request Test Coverage Report for Build 23810534994Details
💛 - Coveralls |
Summary
Fixes two runtime errors in the admin UI:
"SetOrganizationMemberRoleRequestSchema is not exported" — Admin app pinned an older
@raystack/protonmissing this schema. Bumped to match the SDK version.Potential "No QueryClient set" — pnpm can resolve separate copies of
@tanstack/react-queryfor the app (React 19) and SDK (React 18), creating isolated contexts. Added@tanstack/react-queryand@connectrpc/connect-queryto Vite'sresolve.dedupeto ensure a single instance is shared.Changes
web/apps/admin/package.json— bump@raystack/protonto0.1.0-0b6548eweb/apps/admin/vite.config.ts— add@tanstack/react-queryand@connectrpc/connect-querytoresolve.dedupeTest plan
pnpm run buildinweb/apps/adminpasses