tangled
alpha
login
or
join now
whey.party
/
red-dwarf
82
fork
atom
an independent Bluesky client using Constellation, PDS Queries, and other services
reddwarf.app
frontend
spa
bluesky
reddwarf
microcosm
client
app
82
fork
atom
overview
issues
25
pulls
pipelines
TEMPLINEAR
rimar1337
4 months ago
b9c7d025
83082d78
+4
-2
1 changed file
expand all
collapse all
unified
split
src
components
UniversalPostRenderer.tsx
+4
-2
src/components/UniversalPostRenderer.tsx
···
150
maxReplies,
151
isQuote,
152
}: UniversalPostRendererATURILoaderProps) {
0
0
153
// /*mass comment*/ console.log("atUri", atUri);
154
//const { get, set } = usePersistentStore();
155
//const [record, setRecord] = React.useState<any>(null);
···
425
426
// auto-fetch all pages
427
useEffect(() => {
428
-
if (!maxReplies || isQuote) return;
429
if (
430
infinitequeryresults.hasNextPage &&
431
!infinitequeryresults.isFetchingNextPage
···
433
console.log("Fetching the next page...");
434
infinitequeryresults.fetchNextPage();
435
}
436
-
}, [infinitequeryresults]);
437
438
const replyAturis = repliesData
439
? repliesData.pages.flatMap((page) =>
···
150
maxReplies,
151
isQuote,
152
}: UniversalPostRendererATURILoaderProps) {
153
+
// todo remove this once tree rendering is implemented, use a prop like isTree
154
+
const TEMPLINEAR = true;
155
// /*mass comment*/ console.log("atUri", atUri);
156
//const { get, set } = usePersistentStore();
157
//const [record, setRecord] = React.useState<any>(null);
···
427
428
// auto-fetch all pages
429
useEffect(() => {
430
+
if (!maxReplies || isQuote || TEMPLINEAR) return;
431
if (
432
infinitequeryresults.hasNextPage &&
433
!infinitequeryresults.isFetchingNextPage
···
435
console.log("Fetching the next page...");
436
infinitequeryresults.fetchNextPage();
437
}
438
+
}, [TEMPLINEAR, infinitequeryresults, isQuote, maxReplies]);
439
440
const replyAturis = repliesData
441
? repliesData.pages.flatMap((page) =>