diff --git a/packages/react/src/hooks.ts b/packages/react/src/hooks.ts index 497a5e1d..a773e94b 100644 --- a/packages/react/src/hooks.ts +++ b/packages/react/src/hooks.ts @@ -31,6 +31,7 @@ export function useDatamodel ({ servicePrincipal, connection }: DatamodelProps): setEvents(events) setAccounts(Object.values(client.accounts())) setSpaces(client.spaces()) + await client.capability.access.claim() }, [servicePrincipal, connection] )