File tree 1 file changed +14
-14
lines changed
src/pages/[platform]/build-a-backend/storage/list-files
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -70,20 +70,20 @@ const PAGE_SIZE = 20;
70
70
let nextToken;
71
71
// ...
72
72
const loadNextPage = async () => {
73
- const response = await list({
74
- path: 'photos/',
75
- // Alternatively, path: ({ identityId }) => ` album/ {identityId}/ photos/ `
76
- options: {
77
- pageSize: PAGE_SIZE,
78
- nextToken,
79
- },
80
- });
81
- if (response.nextToken) {
82
- nextToken = response.nextToken;
83
- } else {
84
- nextToken = undefined;
85
- }
86
- // render list items from response.items
73
+ const response = await list({
74
+ path: 'photos/',
75
+ // Alternatively, path: ({ identityId }) => ` album/ {identityId}/ photos/ `
76
+ options: {
77
+ pageSize: PAGE_SIZE,
78
+ nextToken,
79
+ },
80
+ });
81
+ if (response.nextToken) {
82
+ nextToken = response.nextToken;
83
+ } else {
84
+ nextToken = undefined;
85
+ }
86
+ // render list items from response.items
87
87
};
88
88
` ` `
89
89
You can’t perform that action at this time.
0 commit comments