ui v0.7.0
Minor Changes
-
run()now uses a default browser frame resolver whenresolveFrameis omitted. Apps that supplied a resolver only to fetch frame HTML can remove it:let app = run({ loadModule, - resolveFrame(src, options) { - return fetch(src, { - headers: { Accept: 'text/html' }, - signal: options?.signal, - }) - }, })All
run()calls now enable frame reloads and same-origin link and form navigation through the Navigation API. The default resolver submits the requested method, encoding, and form data, and rejects non-OK responses. Keep a customresolveFramewhen the app needs custom request headers, body encoding, response handling, or error UI. Addrmx-documentto a link or form to leave that navigation to the browser (see #11693).