You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today a cursor is being passed on the URL params. Would it be better to have a number for the pagination?
A suggestion would be to pass the page number ('n') as an optional parameter to the getAllItems() function on the db.ts file. Then iterate on the list (with the the {limit: 10} option, for example) until you reach the n-th set of items.
This way index.tsx file wouldn't have to know anything about a cursor.
The text was updated successfully, but these errors were encountered:
Today a cursor is being passed on the URL params. Would it be better to have a number for the pagination?
A suggestion would be to pass the page number ('n') as an optional parameter to the getAllItems() function on the db.ts file. Then iterate on the list (with the the {limit: 10} option, for example) until you reach the n-th set of items.
This way index.tsx file wouldn't have to know anything about a cursor.
The text was updated successfully, but these errors were encountered: