Skip to content

claimCodeBlockRenderHandoff

Claims the handoff a write recorded for the code block being rendered.

Call it from a code block processor. It returns null when no write is waiting for this render.

Import:

import { claimCodeBlockRenderHandoff } from '@mnaoumov/obsidian-lib/code-block-render-handoff';

Signature:

function claimCodeBlockRenderHandoff(params: ClaimCodeBlockRenderHandoffParams): CodeBlockRenderHandoff | null

Parameters:

Parameter Type Description
params ClaimCodeBlockRenderHandoffParams The parameters for the function.

Returns: CodeBlockRenderHandoff | null — The handoff, or null.


Links to this page: