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
In a standard CRA environment, fetch is being polyfilled by fetch when running tests. Unfortunately, the polyfill does not implement .body, thus the new check introduced in #9690 fail and useActionData returns the raw Response instead.
Expected Behavior
I expect useActionData to always unwrap the Response body and give back the actual JSON.
Actual Behavior
Since the polyfill does not implement .body, typeof value.body !== "undefined" always fail and the response is not unwrapped as expected. Instead, the raw Response is returned by useActionData.