技能 编程开发 管理后台租户抽象组件

管理后台租户抽象组件

v20260424
webiny-admin-tenancy-catalog
本模块是管理后台(Admin)的租户(Tenancy)功能组件集合。它提供了一系列用于处理多租户架构的核心抽象概念、类型定义和React Hooks。开发者可以使用这些工具来确定当前租户的上下文、判断租户角色(如根租户),并管理租户的启用/禁用状态,确保应用在多租户环境下的数据隔离和逻辑正确性。
获取技能
203 次下载
概览

admin/tenancy

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";

Abstractions


Name: IsNotRootTenant Import: import { IsNotRootTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/IsRootTenant.tsx


Name: IsRootTenant Import: import { IsRootTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/IsRootTenant.tsx


Name: IsTenant Import: import { IsTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/IsRootTenant.tsx


Name: TenantContext Import: import { TenantContext } from "webiny/admin/tenancy" Source: @webiny/app-admin/features/tenancy/abstractions.ts


Name: TenantEntry Kind: type Import: import type { TenantEntry } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/types.ts


Name: useCurrentTenant Import: import { useCurrentTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/CurrentTenant/useCurrentTenant.ts


Name: useDisableTenant Import: import { useDisableTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/DisableTenant/index.ts


Name: useEnableTenant Import: import { useEnableTenant } from "webiny/admin/tenancy" Source: @webiny/tenant-manager/admin/EnableTenant/index.ts


Name: useTenantContext Import: import { useTenantContext } from "webiny/admin/tenancy" Source: @webiny/app-admin/presentation/tenancy/useTenantContext.ts


信息
Category 编程开发
Name webiny-admin-tenancy-catalog
版本 v20260424
大小 1.79KB
更新时间 2026-04-28
语言