Skip to content

Commit

Permalink
spaces instead of tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjarvisp committed Jan 3, 2025
1 parent 52c2084 commit cbcd7eb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/pages/[platform]/build-a-backend/storage/list-files/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,20 @@ const PAGE_SIZE = 20;
let nextToken;
// ...
const loadNextPage = async () => {
const response = await list({
path: 'photos/',
// Alternatively, path: ({ identityId }) => `album/{identityId}/photos/`
options: {
pageSize: PAGE_SIZE,
nextToken,
},
});
if (response.nextToken) {
nextToken = response.nextToken;
} else {
nextToken = undefined;
}
// render list items from response.items
const response = await list({
path: 'photos/',
// Alternatively, path: ({ identityId }) => `album/{identityId}/photos/`
options: {
pageSize: PAGE_SIZE,
nextToken,
},
});
if (response.nextToken) {
nextToken = response.nextToken;
} else {
nextToken = undefined;
}
// render list items from response.items
};
```

Expand Down

0 comments on commit cbcd7eb

Please sign in to comment.