Skip to content

UsePersistentBlockIdentityOptions

Defined in: inspector-runtime-types.ts:173

Describe the options accepted by usePersistentBlockIdentity().

autoRepair defaults to enabled when omitted. Pass a stable or memoized blocks reference so equivalent renders can reuse the same duplicate-repair analysis instead of recomputing it. Set blockName when one editor tree can contain multiple block types that use the same identity attribute name.

T extends object

attributeName: AttributeNameFor<T>

Defined in: inspector-runtime-types.ts:174


attributes: T

Defined in: inspector-runtime-types.ts:175


optional autoRepair?: boolean

Defined in: inspector-runtime-types.ts:176


optional blockName?: string

Defined in: inspector-runtime-types.ts:177


blocks: readonly PersistentBlockIdentityNode[]

Defined in: inspector-runtime-types.ts:178


clientId: string

Defined in: inspector-runtime-types.ts:179


optional duplicateDetection?: boolean

Defined in: inspector-runtime-types.ts:180


prefix: string

Defined in: inspector-runtime-types.ts:181


setAttributes: (attrs) => void

Defined in: inspector-runtime-types.ts:182

Partial<T>

void