-
Notifications
You must be signed in to change notification settings - Fork 74
SDK migration #3099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK migration #3099
Conversation
📝 WalkthroughWalkthroughMigrate app-wide data fetching to Changes
Sequence Diagram(s)sequenceDiagram
participant UI as App UI
participant QC as QueryClient (SDK)
participant API as Ecency API
participant WS as Mattermost WS
UI->>QC: fetchQuery(getPost/getDiscussions/getAccountFull/...)
QC->>API: HTTP request via SDK
API-->>QC: response
QC-->>UI: cached data (useQuery / useInfiniteQuery)
UI->>QC: mutate (useBroadcastMutation / useMarkNotificationsRead) with credentials
QC->>API: broadcast/mutation (signed)
API-->>QC: tx/result
QC-->>UI: invalidate/refresh relevant queries
UI->>WS: send chat message (include pendingPostId)
WS-->>UI: confirmation (pendingPostId)
UI->>QC: invalidate discussions / refetch related feeds
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120+ minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 by CodeRabbit
New Features
Improvements
Version
✏️ Tip: You can customize this high-level summary in your review settings.