Skip to content

Commit

Permalink
Update single fetch deprecation notice to also include info about null
Browse files Browse the repository at this point in the history
Resource routes can no longer just return null, call this out in the deprecation notice.
  • Loading branch information
JakeGinnivan authored Oct 21, 2024
1 parent b98a53e commit 09c5dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-server-runtime/deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function resourceRouteJsonWarning(
) {
return (
"⚠️ REMIX FUTURE CHANGE: Resource routes will no longer be able to " +
"return raw JavaScript objects in v3 when Single Fetch becomes the default. " +
"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 " +
Expand Down

0 comments on commit 09c5dcb

Please sign in to comment.