We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4f242f + c6db1f7 commit 14a7463Copy full SHA for 14a7463
hooks/queries/useGetChatHistory.ts
@@ -13,6 +13,7 @@ export default function useGetChatHistory(roomId: string) {
13
},
14
select: (chatHistory) => {
15
const reversedChatContent = chatHistory.pages
16
+ .slice()
17
.reverse()
18
.flatMap((chat) => chat.content);
19
return {
0 commit comments