Change8

remix@3.0.0-beta.9

📦 remixView on GitHub →
2 features🐛 1 fixes🔧 3 symbols

Summary

This beta release introduces default frame HTML fetching in `remix/ui` and fixes type checking issues in fresh projects using `staticFiles()` middleware. It also allows client entries to preload module graphs.

Migration Steps

  1. If you previously had a custom `resolveFrame` in `remix/ui` solely to enable frame reloads and same-origin link/form navigation, remove it. Keep a custom resolver only if your app requires custom request headers, body encoding, response handling, or error UI.
  2. Add `rmx-document` to a link or form to delegate navigation to the browser.

✨ New Features

  • Allow `resolveClientEntry()` in `remix/ui` to return module preload hrefs so client entries can preload their browser module graphs.
  • `run()` from `remix/ui` now fetches frame HTML by default, enabling frame reloads and same-origin link and form navigation without a custom `resolveFrame`.

🐛 Bug Fixes

  • Fixed fresh Remix projects failing type checking when `staticFiles()` and other router middleware were used together. `remix/middleware/static` now uses the same router dependency as `remix/router`, preventing incompatible `RequestContext` types from being installed.

Affected Symbols