up.RenderResult
JavaScript class
Instances of up.RenderResult describe the effects of rendering.
Functions like up.render(), up.follow() or up.submit() return a promise
that resolves with an up.RenderResult:
let result = await up.render('.target', { content: 'foo' })
console.log(result.fragments) // result: [<div class="target">...</div>]
console.log(result.layer) // result: up.Layer.Root
console.log(result.renderOptions) // result: { target: '.target', content: 'foo', ... }
Features
-
A promise that settles when no further DOM changes will be caused by this render pass.
-
Returns the inserted fragment.
-
The effective fragments that ended up being inserted.
-
The updated layer.
-
Whether this render pass did not result in any fragments being rendered.
-
Whether this render pass has rendered a successful response.
-
The render options used to produce this result.
-
The target selector for the rendered fragments.