up.RenderResult.prototype.finished
Property
A promise that settles when no further DOM changes will be caused by this render pass.
In particular:
- Animations have concluded and transitioned elements were removed from the DOM tree.
- A cached response was revalidated with the server. If the server has responded with new content, this content has also been rendered.
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.
Type: Promise<up.RenderResult>