We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0ce4ac + 14cd8e1 commit 80580d1Copy full SHA for 80580d1
packages/overmind-website/examples/api/action.ts
@@ -3,9 +3,9 @@ export default (ts) =>
3
? [
4
{
5
code: `
6
-import { Action } from 'overmind'
+import { AsyncAction } from 'overmind'
7
8
-export const getPosts: Action = async ({ state, actions, effects }) => {
+export const getPosts: AsyncAction = async ({ state, actions, effects }) => {
9
state.isLoadingPosts = true
10
state.posts = await effects.api.getPosts()
11
state.isLoadingPosts = false
0 commit comments