cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

perf: Slim down loggedInViewer tRPC router

Open keithwillcode opened this issue 1 year ago • 2 comments

What does this PR do?

Our loggedInViewer is ridiculously big and imports tons of things. This is the start to split it into separate tRPC routers so we limit how many dependencies are loaded per tRPC call.

Mandatory Tasks (DO NOT REMOVE)

  • [x] I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • [x] I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • [x] I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Ensure all new routes are working

keithwillcode avatar Mar 15 '25 22:03 keithwillcode

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Mar 16, 2025 8:06pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Mar 16, 2025 8:06pm

vercel[bot] avatar Mar 15 '25 22:03 vercel[bot]

E2E results are ready!

github-actions[bot] avatar Mar 16 '25 11:03 github-actions[bot]