chore: inbox issue detail activity and comment initial load improvement (#3819)

This commit is contained in:
Anmol Singh Bhatia 2024-02-28 15:23:45 +05:30 committed by GitHub
parent 1f5d54260a
commit fece947eb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,8 @@ export const InboxIssueDetailRoot: FC<TInboxIssueDetailRoot> = (props) => {
} = useInboxIssues(); } = useInboxIssues();
const { const {
issue: { getIssueById }, issue: { getIssueById },
fetchActivities,
fetchComments,
} = useIssueDetail(); } = useIssueDetail();
const { captureIssueEvent } = useEventTracker(); const { captureIssueEvent } = useEventTracker();
const { setToastAlert } = useToast(); const { setToastAlert } = useToast();
@ -125,6 +127,8 @@ export const InboxIssueDetailRoot: FC<TInboxIssueDetailRoot> = (props) => {
async () => { async () => {
if (workspaceSlug && projectId && inboxId && issueId) { if (workspaceSlug && projectId && inboxId && issueId) {
await issueOperations.fetch(workspaceSlug, projectId, issueId); await issueOperations.fetch(workspaceSlug, projectId, issueId);
await fetchActivities(workspaceSlug, projectId, issueId);
await fetchComments(workspaceSlug, projectId, issueId);
} }
} }
); );