fix(desktop): invalidate workspace nav queries after reorder#1474
Conversation
After dragging workspaces or projects to reorder them, the getPreviousWorkspace and getNextWorkspace tRPC queries were not invalidated, causing keyboard navigation (⌘↑/⌘↓) to use stale order.
📝 WalkthroughWalkthroughThis change extends the cache invalidation logic in two React Query reorder hooks. Both Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
No actionable comments were generated in the recent review. 🎉 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 |
Summary
getPreviousWorkspaceandgetNextWorkspacetRPC queries were not invalidateduseReorderWorkspacesanduseReorderProjectsReproduction steps
Test plan
Summary by CodeRabbit
Release Notes