Skip to content

Commit 9eab97c

Browse files
committed
omit dismantle ctx
1 parent 3ea5177 commit 9eab97c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/start/src/fns/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ async function fetchServerFunction(
145145
base: string,
146146
id: string,
147147
options: Omit<RequestInit, "body">,
148-
args: any[],
148+
[_ctx, ...args]: any[],
149149
) {
150150
const instance = `server-fn:${INSTANCE++}`;
151151
const response = await (args.length === 0

packages/start/src/fns/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export async function handleServerFunction(h3Event: H3Event) {
153153
event.locals.serverFunctionMeta = {
154154
id: functionId,
155155
};
156-
return serverFunction(...parsed);
156+
return serverFunction({ l:[], m:[] },...parsed);
157157
});
158158

159159
if (singleFlight && instance) {

0 commit comments

Comments
 (0)