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
150
maxReplies,
151
151
isQuote,
152
152
}: UniversalPostRendererATURILoaderProps) {
153
153
+
// todo remove this once tree rendering is implemented, use a prop like isTree
154
154
+
const TEMPLINEAR = true;
153
155
// /*mass comment*/ console.log("atUri", atUri);
154
156
//const { get, set } = usePersistentStore();
155
157
//const [record, setRecord] = React.useState<any>(null);
···
425
427
426
428
// auto-fetch all pages
427
429
useEffect(() => {
428
428
-
if (!maxReplies || isQuote) return;
430
430
+
if (!maxReplies || isQuote || TEMPLINEAR) return;
429
431
if (
430
432
infinitequeryresults.hasNextPage &&
431
433
!infinitequeryresults.isFetchingNextPage
···
433
435
console.log("Fetching the next page...");
434
436
infinitequeryresults.fetchNextPage();
435
437
}
436
436
-
}, [infinitequeryresults]);
438
438
+
}, [TEMPLINEAR, infinitequeryresults, isQuote, maxReplies]);
437
439
438
440
const replyAturis = repliesData
439
441
? repliesData.pages.flatMap((page) =>