✨ Basis of publisher page
This commit is contained in:
@@ -108,11 +108,16 @@ export const useRepliesList = (params: RepliesListParams | Ref<RepliesListParams
|
||||
side: string
|
||||
done: (status: "empty" | "loading" | "error" | "ok") => void
|
||||
}) => {
|
||||
if (!state.value.hasMore || state.value.loading) {
|
||||
if (!state.value.hasMore) {
|
||||
options?.done("empty")
|
||||
return
|
||||
}
|
||||
|
||||
if (state.value.loading) {
|
||||
options?.done("loading")
|
||||
return
|
||||
}
|
||||
|
||||
const result = await fetchReplies(state.value.cursor, true)
|
||||
|
||||
if (result.hasReachedEnd) {
|
||||
|
||||
Reference in New Issue
Block a user