@@ -17,6 +17,7 @@ import {
1717 useOrganizationContext ,
1818 useSessionContext ,
1919} from '../contexts' ;
20+ import { STABLE_KEYS } from '../stable-keys' ;
2021import type { PaginatedHookConfig , PaginatedResources , PaginatedResourcesWithDefault } from '../types' ;
2122import { createCacheKeys } from './createCacheKeys' ;
2223import { usePagesOrInfinite , useWithSafeValues } from './usePagesOrInfinite' ;
@@ -368,7 +369,7 @@ export function useOrganization<T extends UseOrganizationParams>(params?: T): Us
368369 pageSize : domainSafeValues . pageSize ,
369370 } ,
370371 keys : createCacheKeys ( {
371- stablePrefix : 'domains' ,
372+ stablePrefix : STABLE_KEYS . DOMAINS_KEY ,
372373 authenticated : Boolean ( organization ) ,
373374 tracked : {
374375 organizationId : organization ?. id ,
@@ -390,7 +391,7 @@ export function useOrganization<T extends UseOrganizationParams>(params?: T): Us
390391 pageSize : membershipRequestSafeValues . pageSize ,
391392 } ,
392393 keys : createCacheKeys ( {
393- stablePrefix : 'membershipRequests' ,
394+ stablePrefix : STABLE_KEYS . MEMBERSHIP_REQUESTS_KEY ,
394395 authenticated : Boolean ( organization ) ,
395396 tracked : {
396397 organizationId : organization ?. id ,
@@ -412,7 +413,7 @@ export function useOrganization<T extends UseOrganizationParams>(params?: T): Us
412413 pageSize : membersSafeValues . pageSize ,
413414 } ,
414415 keys : createCacheKeys ( {
415- stablePrefix : 'members' ,
416+ stablePrefix : STABLE_KEYS . MEMBERSHIPS_KEY ,
416417 authenticated : Boolean ( organization ) ,
417418 tracked : {
418419 organizationId : organization ?. id ,
@@ -434,7 +435,7 @@ export function useOrganization<T extends UseOrganizationParams>(params?: T): Us
434435 pageSize : invitationsSafeValues . pageSize ,
435436 } ,
436437 keys : createCacheKeys ( {
437- stablePrefix : 'invitations' ,
438+ stablePrefix : STABLE_KEYS . INVITATIONS_KEY ,
438439 authenticated : Boolean ( organization ) ,
439440 tracked : {
440441 organizationId : organization ?. id ,
0 commit comments