Skip to content

Commit

Permalink
Add back in required AppLoadContext to DataFunctionArgs (#7403)
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 authored Sep 13, 2023
1 parent 6430a57 commit 08d492f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cyan-cameras-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/server-runtime": patch
---

[Remove] Fix AppLoadContext
4 changes: 3 additions & 1 deletion packages/remix-server-runtime/routeModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export interface RouteModules<RouteModule> {
// RR also doesn't export DataFunctionArgs, so we extend the two interfaces here
// even tough they're identical under the hood
export type DataFunctionArgs = RRActionFunctionArgs<AppLoadContext> &
RRLoaderFunctionArgs<AppLoadContext>;
RRLoaderFunctionArgs<AppLoadContext> & {
context: AppLoadContext;
};

/**
* A function that handles data mutations for a route.
Expand Down

0 comments on commit 08d492f

Please sign in to comment.