A queued render task.
See render hooks for examples for awaiting rendering completion and how to handle errors.
let job = up.render('.foo', url: '/users') console.log(job.options.target) // logs ".foo" console.log(job.options.url) // logs "/users" let renderResult = await job // fragments were updated console.log(renderResult.fragment) // logs the updated fragment let finalResult = await job.finished // animations are done and cached content was revlidated console.log(finalResult.fragment) // logs the revalidated fragment
A promise that fulfills when fragments were updated, animations have concluded and cached content was revalidated.
The render options for this job.
up.RenderJob is also a promise for its completion.