Utilities

Helpful functions when working in Fyord projects

Asap

function Asap(func: () => void): Promise<void>
Adds an anonymous function to the queue to be execute as soon as possible.
/* Use within a component's Template method to focus an input on each render */

Asap(() => {
this.inputField.focus();
});

/* Use within a page's Route method to focus each time the page is visited */