Manta Developers
GitHub
Menu

@manta-eu/react/hooks/usePlanLimits

Reference for @manta-eu/react/hooks/usePlanLimits as it is on main.

Type Aliases

PlanLimitsHandle

PlanLimitsHandle = object

Properties

error

error: string | null

isLoading

isLoading: boolean

isSaving

isSaving: boolean

omittedRules

omittedRules: number

Rules beyond the first page, left out of the dialog.

rules

rules: PlanLimitRule[]

save

save: (changes) => Promise<PlanLimitsSaveResult>

Parameters
changes

readonly PlanLimitChange[]

Returns

Promise<PlanLimitsSaveResult>


UsePlanLimitsOptions

UsePlanLimitsOptions = object

Properties

planGraphIri

planGraphIri: string | undefined

Variables

planLimitsRuleLimit

const planLimitsRuleLimit: 100 = 100

The most rules read for one plan; a plan with more shows the first page and says so.

Functions

usePlanLimits()

usePlanLimits(options): PlanLimitsHandle

Parameters

options

UsePlanLimitsOptions

Returns

PlanLimitsHandle