Skip to content

Commit

Permalink
Update deprecations.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 authored and JakeGinnivan committed Oct 21, 2024
1 parent e499473 commit 1d84a46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/remix-server-runtime/deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ export function resourceRouteJsonWarning(
routeId: string
) {
return (
"⚠️ REMIX FUTURE CHANGE: Resource routes will no longer be able to " +
"return null or raw JavaScript objects in v3 when Single Fetch becomes the default. " +
"You can prepare for this change at your convenience by wrapping the data " +
`returned from your \`${type}\` function in the \`${routeId}\` route with ` +
"`json()`. For instructions on making this change see " +
"https://remix.run/docs/en/v2.9.2/guides/single-fetch#resource-routes"
"⚠️ REMIX FUTURE CHANGE: Externally-accessed resource routes will no longer be " +
"able to return raw JavaScript objects or `null` in React Router v7 when " +
"Single Fetch becomes the default. You can prepare for this change at your " +
`convenience by wrapping the data returned from your \`${type}\` function in ` +
`the \`${routeId}\` route with \`json()\`. For instructions on making this ` +
"change, see https://remix.run/docs/en/v2.13.1/guides/single-fetch#resource-routes"
);
}

0 comments on commit 1d84a46

Please sign in to comment.