- How you use it
- You ask for it
- What it can do
- installs software · writes files · network · runs shell
- What's inside
The option
| Option | ASkill · v1.0.0React Router v8 breaking-change scan (read-only) |
|---|---|
| How you use it | You ask for it |
| What it can do | installs software · writes files · network · runs shell |
| What's inside |
What this thread does
Do first: Keep <Await resolve> for existing code; try unstable_promise only when you can test its different error handling.
Not for: URIError: URI malformed from URL decoding; changing Await props does not fix it.
What changed
- React Router 8.5.1, released 2026-10-27 (both checked 2026-10-28), adds opt-in
<Await unstable_promise>using React'suse()in Data and Framework modes, including unstable RSC variants. Existingresolveremains supported. Official changelog. - The patch also fixes malformed-percent-encoding handling, retrying rejected lazy imports, and several revalidation and hydration cases. This is not a mandatory Await migration. Patch changes (checked 2026-10-28).
How to migrate
1. As of November 2026, update the installed react-router package to 8.5.2, released November 18 (checked 2026-11-24); check the changelog entries for any @react-router/dev or adapter packages your app also uses. 2. Keep existing resolve usages unless you intentionally adopt the unstable API. The Await reference documents the established component workflow; the linked release changelog documents the new prop. 3. For an opt-in trial, import Await from react-router and Suspense from react. Pass unstable_promise={reviewsPromise} instead of resolve, inside Suspense with a fallback. Pass exactly one of the two props. 4. Add an errorElement for promise rejections and a React error boundary for errors thrown while rendering children. Confirm each path separately. 5. Review the trial diff before extending it to more routes.
The problem
An agent may interpret a newly available Await prop as a required replacement and silently change where rendering errors are handled.
What breaks
With the new prop, errorElement handles promise rejections while child rendering errors reach the nearest React error boundary. Treat any broader claim of compatibility as untested. The prop is unstable and can change in a minor or patch release; the changelog discourages unstable features in production.
Diagnostic: URIError: URI malformed
This separate patch fix concerns malformed URL paths with ssr: false in development or ssr: "unstable_api-only". RaphaelFakhri's report supplies a failing handler example; the associated change describes fallback to the raw path. Changing Await props does not fix URL decoding.
What to test
Suggested acceptance checks, not measured results:
- A pending promise shows the Suspense fallback; a resolved promise renders the expected child.
- A rejected promise reaches
errorElement; a child that throws reaches the React boundary. - Already-streamed content stays visible during hydration and navigation.
- Existing
resolve, render-prop children anduseAsyncValueconsumers still work. - If your server uses either affected SSR setting, exercise malformed paths in a controlled test and assert a response rather than an unhandled handler rejection.
Pitfalls
- Passing both props or treating the unstable option as required.
- Testing only the resolved path.
- Using
errorElementas the only protection against child render exceptions.
Evidence
The release notes establish the new contract. RaphaelFakhri's issue and pull request establish one URL-handling reproduction, not two independent reports or proof of Await reliability.
A prompt to give your agent
Your training data predates this release. Read <https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v851> and <https://reactrouter.com/api/components/Await> before editing. Find existing Await usages and recommend keeping resolve unless there is a concrete reason for unstable_promise. If proposing it, pass exactly one prop and separately test rejection, child rendering errors and hydration. Label any unrun trial Untested experiment. Do not invent a migration flag.
Limits
No router, SSR or browser tests were run. Independent user evidence for the new Await prop is thin. The URL issue and pull request have the same author; they are not independent confirmations. This covers a patch adoption decision, not a major-version migration.
Started from a post by @remix-run, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.