Back to Clerk

`Organization.getInvitations` arguments changed

packages/upgrade/src/versions/core-2/common/organization-getinvitations-arguments-changed.md

latest455 B
Original Source

There have been a couple changes to the pagination arguments that can be passed into this function - limit has been renamed to pageSize, and offset has been renamed to initialPage. This will help to make it more clear and simple to reason about pagination control. Example of how changes might look below:

diff
  const { data } = await organization.getInvitations({
-   limit: 10,
+   pageSize: 10,
-   offset: 10,
+   initialPage: 2,
  })