atproto explorer
0
fork

Configure Feed

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

format

+22 -19
+22 -19
src/App.tsx
··· 101 101 } 102 102 }); 103 103 104 - const getRecord = query((repo: string, collection: string, rkey: string) => { 105 - return rpc.get("com.atproto.repo.getRecord", { 106 - params: { repo: repo, collection: collection, rkey: rkey }, 107 - }); 108 - }, "getRecord"); 104 + const getRecord = query( 105 + (repo: string, collection: string, rkey: string) => 106 + rpc.get("com.atproto.repo.getRecord", { 107 + params: { repo: repo, collection: collection, rkey: rkey }, 108 + }), 109 + "getRecord", 110 + ); 109 111 110 112 return ( 111 113 <Show when={record()}> ··· 142 144 }; 143 145 144 146 const listRecords = query( 145 - (collection: string, cursor: string | undefined) => { 146 - return rpc.get("com.atproto.repo.listRecords", { 147 + (collection: string, cursor: string | undefined) => 148 + rpc.get("com.atproto.repo.listRecords", { 147 149 params: { 148 150 repo: params.repo, 149 151 collection: collection, 150 152 limit: 100, 151 153 cursor: cursor, 152 154 }, 153 - }); 154 - }, 155 + }), 155 156 "listRecords", 156 157 ); 157 158 ··· 199 200 } 200 201 }); 201 202 202 - const describeRepo = query((repo: string) => { 203 - return rpc.get("com.atproto.repo.describeRepo", { 204 - params: { repo: repo }, 205 - }); 206 - }, "describeRepo"); 203 + const describeRepo = query( 204 + (repo: string) => 205 + rpc.get("com.atproto.repo.describeRepo", { params: { repo: repo } }), 206 + "describeRepo", 207 + ); 207 208 208 209 return ( 209 210 <> ··· 253 254 } 254 255 }; 255 256 256 - const listRepos = query((cursor: string | undefined) => { 257 - return rpc.get("com.atproto.sync.listRepos", { 258 - params: { limit: 1000, cursor: cursor }, 259 - }); 260 - }, "listRepos"); 257 + const listRepos = query( 258 + (cursor: string | undefined) => 259 + rpc.get("com.atproto.sync.listRepos", { 260 + params: { limit: 1000, cursor: cursor }, 261 + }), 262 + "listRepos", 263 + ); 261 264 262 265 return ( 263 266 <>