Skip to content

Conversation

@pcattori
Copy link
Contributor

@pcattori pcattori commented Jun 5, 2025

You MUST annotate clientLoader with Route.ClientLoaderArgs for types to distinguish a client loader from a server loader. See changeset for details.

@changeset-bot
Copy link

changeset-bot bot commented Jun 5, 2025

🦋 Changeset detected

Latest commit: 3d7a44f

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

Co-authored-by: Steven Liao <steven.liaouey@gmail.com>
@pcattori pcattori merged commit 0a6acb1 into dev Jun 5, 2025
12 of 14 checks passed
@pcattori pcattori deleted the pedro/do-not-serialize-userouteloaderdata-types-from-clientloader branch June 5, 2025 20:30
@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version 7.6.3-pre.0 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!

@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version 7.6.3 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!

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.

useRouteLoaderData<typeof clientLoader> with Route.ClientLoaderArgs serializes functions to undefined

2 participants