Skip to content

Conversation

rururux
Copy link
Contributor

@rururux rururux commented Aug 26, 2025

fixes: #13751

This commit fixes a bug where createCookie was applying its default transformations even when custom encode and decode functions were provided.
This led to an unintended double-encoding of cookie values.

The fix ensures that if custom encode and decode functions exist in the cookie options, the default transformations are completely bypassed.
This aligns the createCookie API with its intended behavior: allowing developers to take full control of the serialization and deserialization process.

Copy link

changeset-bot bot commented Aug 26, 2025

🦋 Changeset detected

Latest commit: e85393c

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

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.

1 participant