atproto explorer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix load more records

+4 -3
+4 -3
src/views/collection.tsx
··· 14 14 createSignal<ComAtprotoRepoListRecords.Record[]>(); 15 15 const [filter, setFilter] = createSignal<string>(); 16 16 let rpc: XRPC; 17 + let did: string; 17 18 18 19 onMount(async () => { 19 20 setNotice("Loading..."); ··· 22 23 params.pds.startsWith("localhost") ? 23 24 `http://${params.pds}` 24 25 : `https://${params.pds}`; 25 - const did = 26 + did = 26 27 params.repo.startsWith("did:") ? 27 28 params.repo 28 29 : await resolveHandle(params.repo); 29 30 if (params.pds === "at") pds = await resolvePDS(did); 30 31 rpc = new XRPC({ handler: new CredentialManager({ service: pds }) }); 31 - await fetchRecords(did); 32 + await fetchRecords(); 32 33 setNotice(""); 33 34 }); 34 35 35 - const fetchRecords = async (did: string) => { 36 + const fetchRecords = async () => { 36 37 const res = await listRecords(did, params.collection, cursorRecord()); 37 38 setCursorRecord( 38 39 res.data.records.length < 100 ? undefined : res.data.cursor,