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.
1 parent b2f6610 commit 34883ceCopy full SHA for 34883ce
packages/node_modules/overmind-react/src/index.test.tsx
@@ -12,7 +12,7 @@ describe('React', () => {
12
},
13
actions: {
14
doThis: (action) =>
15
- action().do(() => {
+ action.run(() => {
16
didCallAction = true
17
}),
18
@@ -38,7 +38,7 @@ describe('React', () => {
38
39
40
41
42
43
44
@@ -64,7 +64,7 @@ describe('React', () => {
64
foo: 'bar',
65
66
67
- doThis: (action) => action().mutate((state) => (state.foo = 'bar2')),
+ doThis: (action) => action.mutate((state) => (state.foo = 'bar2')),
68
69
})
70
class Component extends React.Component<TConnect<typeof app>> {
0 commit comments