up.RenderResult up.RenderResult.prototype.finished
Property

A promise that settles when no further DOM changes will be caused by this render pass.

In particular:

The promise resolves to the last up.RenderResult that updated a fragment. If revalidation re-rendered the fragment, it is the result from the second render pass. If no revalidation was performed, or if revalidation yielded an empty response, it is the result from the initial render pass.

The promise will reject if the server sends an error status, if there is a network issue, or if targets could not be matched.

Also see Awaiting postprocessing.

Example

let result = await up.render({ url: '/path' }).finished
console.log(result.fragments)

Value

finished

A promise that settles after all DOM changes.