Skip to content

Commit 02c6e7a

Browse files
committedFeb 16, 2024
action to return fully processed response
1 parent 920d126 commit 02c6e7a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
 

‎.changeset/chilled-lemons-poke.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/router": patch
3+
---
4+
5+
action to return fully processed response

‎src/data/action.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ export function action<T extends Array<any>, U = void>(
9090
retry() {
9191
setResult(undefined);
9292
const p = fn(...variables);
93-
p.then(handler, handler);
94-
return p;
93+
return p.then(handler, handler);
9594
}
9695
})
9796
]);
98-
p.then(handler, handler);
99-
return p;
97+
return p.then(handler, handler);
10098
}
10199

102100
const url: string =

0 commit comments

Comments
 (0)
Please sign in to comment.