This feature is experimental. It may be changed or removed in a future version.
Runs a callback when the given element or its ancestors were aborted.
This utility function simplifies consumption of the
let timeout = setTimeout(() => up.reload(element), 10000) up.fragment.onAborted(element, () => clearTimeout(timeout))
The callback to run.
It will be called with an
A function that unsubscribes the callback.