Back to Clerk

`organizationList` -> `userMemberships` as param to `useOrganizationList`

packages/upgrade/src/versions/core-2/shared/useorganizationlist-organizationlist.md

latest446 B
Original Source

The deprecated organizationList param to useOrganizationList has been removed. Instead, use the userMemberships param. Note that the values to be passed to the param and the return value have also changed.

js
// before
const { organizationList } = useOrganizationList({
  organizationList: { limit: 10, offset: 1 },
});

// after
const { memberships } = useOrganizationList({
  userMemberships: { initialPage: 1, pageSize: 10 },
});