We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e19cec9 commit 8c7e9d3Copy full SHA for 8c7e9d3
src-ts/lib/work-provider/work.provider.tsx
@@ -32,7 +32,14 @@ export const WorkProvider: FC<{ children: ReactNode }> = ({ children }: { childr
32
fieldName: 'created',
33
},
34
}
35
- const work: Array<Work> = await workGetAsync((profile as UserProfile).handle, page)
+ let work: Array<Work> = [];
36
+ let nextSet: Array<Work> = await workGetAsync((profile as UserProfile).handle, page)
37
+
38
+ while (nextSet.length > 0) {
39
+ work = work.concat(nextSet);
40
+ page.number += 1;
41
+ nextSet = await workGetAsync((profile as UserProfile).handle, page)
42
+ }
43
44
const contextData: WorkContextData = {
45
deleteWorkAsync,
0 commit comments