Skip to content

Commit

Permalink
Add back optional response stub for v2 (#9399)
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed May 9, 2024
1 parent 6893db5 commit a4c6f93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .changeset/fresh-pigs-leave.md

This file was deleted.

5 changes: 5 additions & 0 deletions packages/remix-server-runtime/routeModules.ts
Expand Up @@ -11,6 +11,7 @@ import type {
import type { AppData, AppLoadContext } from "./data";
import type { LinkDescriptor } from "./links";
import type { SerializeFrom } from "./serialize";
import type { ResponseStub } from "./single-fetch";

export interface RouteModules<RouteModule> {
[routeId: string]: RouteModule | undefined;
Expand Down Expand Up @@ -40,6 +41,8 @@ export type ActionFunction = (
export type ActionFunctionArgs = RRActionFunctionArgs<AppLoadContext> & {
// Context is always provided in Remix, and typed for module augmentation support.
context: AppLoadContext;
// TODO: (v7) Make this non-optional once single-fetch is the default
response?: ResponseStub;
};

/**
Expand Down Expand Up @@ -71,6 +74,8 @@ export type LoaderFunction = (
export type LoaderFunctionArgs = RRLoaderFunctionArgs<AppLoadContext> & {
// Context is always provided in Remix, and typed for module augmentation support.
context: AppLoadContext;
// TODO: (v7) Make this non-optional once single-fetch is the default
response?: ResponseStub;
};

/**
Expand Down

0 comments on commit a4c6f93

Please sign in to comment.