Skip to content

Conversation

brophdawg11
Copy link
Contributor

Follow up to #14128 after chatting with @jacob-ebey. data() is a React-Router-ism and basically says to use the proper encoding, which is the single fetch encoding for document/data requests, and JSON for API/resource requests.

@brophdawg11 brophdawg11 force-pushed the brophdawg11/data-encoding branch from 3fc64a8 to b876a91 Compare August 15, 2025 14:59
Copy link

changeset-bot bot commented Aug 15, 2025

🦋 Changeset detected

Latest commit: a484adc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
react-router Patch
@react-router/architect Patch
@react-router/cloudflare Patch
@react-router/dev Patch
react-router-dom Patch
@react-router/express Patch
@react-router/node Patch
@react-router/serve Patch
@react-router/fs-routes Patch
@react-router/remix-routes-option-adapter Patch
create-react-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@brophdawg11 brophdawg11 merged commit c819c77 into release-next Aug 15, 2025
8 checks passed
@brophdawg11 brophdawg11 deleted the brophdawg11/data-encoding branch August 15, 2025 18:54
Copy link
Contributor

🤖 Hello there,

We just published version 7.8.1-pre.1 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copy link
Contributor

🤖 Hello there,

We just published version 7.8.1 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

joseph0926 pushed a commit to joseph0926/react-router that referenced this pull request Aug 17, 2025
@MichaelDeBoey MichaelDeBoey changed the title Update logic for data->Response conversion to use Response.json fix(react-router): update logic for data->Response conversion to use Response.json Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants