Sorta working linear view optimistic state

This commit is contained in:
Eric Bailey
2025-05-20 12:29:05 -05:00
parent 8e2bdecc25
commit 912aaac3f6
4 changed files with 119 additions and 15 deletions
+2
View File
@@ -74,6 +74,7 @@ export function usePostThread({
const items = flatten(
sort(query.data?.thread || [], {
view: params.view,
threadgateHiddenReplies: mergeThreadgateHiddenReplies(
query.data?.threadgate?.record,
),
@@ -85,6 +86,7 @@ export function usePostThread({
showHidden: state.shownHiddenReplyKinds.has(HiddenReplyKind.Hidden),
},
)
console.log(items)
const mutator = createCacheMutator({
queryKey,