Skip to content

ui v0.7.0

Choose a tag to compare

@github-actions github-actions released this 17 Aug 22:21
· 5 commits to main since this release
421bd08

Minor Changes

  • run() now uses a default browser frame resolver when resolveFrame is 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 custom resolveFrame when the app needs custom request headers, body encoding, response handling, or error UI. Add rmx-document to a link or form to leave that navigation to the browser (see #11693).