mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 10:50:38 +09:00
fix(ui): harden issue comment editor sync
This commit is contained in:
parent
996c7eb727
commit
327eadb45c
4 changed files with 59 additions and 2 deletions
|
|
@ -36,6 +36,7 @@ import {
|
|||
applyOptimisticIssueCommentUpdate,
|
||||
createOptimisticIssueComment,
|
||||
flattenIssueCommentPages,
|
||||
getNextIssueCommentPageParam,
|
||||
isQueuedIssueComment,
|
||||
matchesIssueRef,
|
||||
mergeIssueComments,
|
||||
|
|
@ -416,7 +417,7 @@ export function IssueDetail() {
|
|||
enabled: !!issueId,
|
||||
initialPageParam: null as string | null,
|
||||
getNextPageParam: (lastPage) =>
|
||||
lastPage.length === ISSUE_COMMENT_PAGE_SIZE ? lastPage[lastPage.length - 1]?.id : undefined,
|
||||
getNextIssueCommentPageParam(lastPage, ISSUE_COMMENT_PAGE_SIZE),
|
||||
placeholderData: keepPreviousData,
|
||||
});
|
||||
const comments = useMemo(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue