Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RELEASE: fix single fetch generic as cast (again) #9957

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/light-moons-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"remix": patch
---

REMOVE: bump prerelease
6 changes: 1 addition & 5 deletions packages/remix-server-runtime/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ type SingleFetchEnabled =
* `type LoaderData = SerializeFrom<typeof loader>`
*/
export type SerializeFrom<T> =
SingleFetchEnabled extends true ?
T extends (...args: any[]) => unknown ?
SingleFetch_SerializeFrom<T> :
never
:
SingleFetchEnabled extends true ? SingleFetch_SerializeFrom<T> :
T extends (...args: any[]) => infer Output ?
Parameters<T> extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ?
// Client data functions may not serialize
Expand Down