Skip to content

Commit b2b68b8

Browse files
authored
Fix: action function throws an error, asking for something to return (#9700)
1 parent 4eb238b commit b2b68b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,4 @@
152152
- xavier-lc
153153
- xcsnowcity
154154
- yuleicul
155+
- pavsoldatov

docs/start/tutorial.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ import {
605605
import { getContacts, createContact } from "../contacts";
606606

607607
export async function action() {
608-
await createContact();
608+
const contact = await createContact();
609+
return { contact }
609610
}
610611

611612
/* other code */

0 commit comments

Comments
 (0)