You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got strange errors when I threw redirectWith... without await in React Router v7.
RR says 500 or an error whose message is [[Object: Promise]].
These errors vanished after I added await to every throw redirectWith.... dataWith... don't require await.
The text was updated successfully, but these errors were encountered:
await is indeed required when throwing because you don't throw the response but rather the promise and that messes up react-router. I'll add this to the docs
I got strange errors when I threw
redirectWith...
withoutawait
in React Router v7.RR says 500 or an error whose message is
[[Object: Promise]]
.These errors vanished after I added
await
to everythrow redirectWith...
.dataWith...
don't requireawait
.The text was updated successfully, but these errors were encountered: