Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-next, this PR will be updated.

Releases

[email protected]

Patch Changes

  • Do not serialize types for useRouteLoaderData<typeof clientLoader> (#13752)

    For types to distinguish a clientLoader from a serverLoader, you MUST annotate clientLoader args:

    //                                   👇 annotation required to skip serializing types
    export function clientLoader({}: Route.ClientLoaderArgs) {
      return { fn: () => "earth" };
    }
    
    function SomeComponent() {
      const data = useRouteLoaderData<typeof clientLoader>("routes/this-route");
      const planet = data?.fn() ?? "world";
      return <h1>Hello, {planet}!</h1>;
    }

@react-router/[email protected]

Patch Changes

@react-router/[email protected]

Patch Changes

@react-router/[email protected]

Patch Changes

[email protected]

Patch Changes

@react-router/[email protected]

Patch Changes

@react-router/[email protected]

Patch Changes

  • Use replaceAll for normalising windows file system slashes. (#13738)
  • Updated dependencies:

@react-router/[email protected]

Patch Changes

@react-router/[email protected]

Patch Changes

  • Use replaceAll for normalising windows file system slashes. (#13738)
  • Updated dependencies:

@react-router/[email protected]

Patch Changes

[email protected]

@brophdawg11 brophdawg11 merged commit 0dea762 into release-next Jun 27, 2025
8 checks passed
@brophdawg11 brophdawg11 deleted the changeset-release/release-next branch June 27, 2025 17:19
vezaynk pushed a commit to vezaynk/react-router that referenced this pull request Jul 7, 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.

1 participant