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.
Type Parameters
Section titled “Type Parameters”T extends object
Properties
Section titled “Properties”attributeName
Section titled “attributeName”attributeName:
AttributeNameFor<T>
Defined in: inspector-runtime-types.ts:174
attributes
Section titled “attributes”attributes:
T
Defined in: inspector-runtime-types.ts:175
autoRepair?
Section titled “autoRepair?”
optionalautoRepair?:boolean
Defined in: inspector-runtime-types.ts:176
blockName?
Section titled “blockName?”
optionalblockName?:string
Defined in: inspector-runtime-types.ts:177
blocks
Section titled “blocks”blocks: readonly
PersistentBlockIdentityNode[]
Defined in: inspector-runtime-types.ts:178
clientId
Section titled “clientId”clientId:
string
Defined in: inspector-runtime-types.ts:179
duplicateDetection?
Section titled “duplicateDetection?”
optionalduplicateDetection?:boolean
Defined in: inspector-runtime-types.ts:180
prefix
Section titled “prefix”prefix:
string
Defined in: inspector-runtime-types.ts:181
setAttributes
Section titled “setAttributes”setAttributes: (
attrs) =>void
Defined in: inspector-runtime-types.ts:182
Parameters
Section titled “Parameters”Partial<T>
Returns
Section titled “Returns”void