Skip to content

Commit 08be471

Browse files
committedSep 28, 2023
chore(shared): Warn about useOrganizations deprecation
1 parent 8c174f2 commit 08be471

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎packages/shared/src/hooks/useOrganizations.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { CreateOrganizationParams, OrganizationMembershipResource, OrganizationResource } from '@clerk/types';
22

3+
import { deprecated } from '../utils';
34
import { useClerkInstanceContext } from './contexts';
45

56
type UseOrganizationsReturn =
@@ -51,6 +52,7 @@ type UseOrganizations = () => UseOrganizationsReturn;
5152
* @deprecated Use useOrganizationList, useOrganization, or useClerk instead
5253
*/
5354
export const useOrganizations: UseOrganizations = () => {
55+
deprecated('useOrganizations', 'Use useOrganizationList, useOrganization, or useClerk instead.');
5456
const clerk = useClerkInstanceContext();
5557
if (!clerk.loaded) {
5658
return {

0 commit comments

Comments
 (0)