mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
15 lines
347 B
Markdown
15 lines
347 B
Markdown
|
---
|
||
|
'astro': patch
|
||
|
---
|
||
|
|
||
|
Fixes a case where Astro allowed to call an action without using `Astro.callAction`. This is now invalid, and Astro will show a proper error.
|
||
|
|
||
|
```diff
|
||
|
---
|
||
|
import { actions } from "astro:actions";
|
||
|
|
||
|
-const result = actions.getUser({ userId: 123 });
|
||
|
+const result = Astro.callAction(actions.getUser, { userId: 123 });
|
||
|
---
|
||
|
```
|