Skip to content

Commit 432c548

Browse files
authored
chore: update data loader example to avoid confusion
closes #3113
1 parent 57b900c commit 432c548

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/data-loading.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A data loader file must end with either `.data.js` or `.data.ts`. The file shoul
1313
export default {
1414
load() {
1515
return {
16-
data: 'hello'
16+
hello: 'world'
1717
}
1818
}
1919
}
@@ -35,7 +35,7 @@ Output:
3535

3636
```json
3737
{
38-
"data": "hello"
38+
"hello": "world"
3939
}
4040
```
4141

0 commit comments

Comments
 (0)