mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
14 lines
347 B
Markdown
14 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 });
|
|
---
|
|
```
|