Use with Redux Actions
// Create an async action
const fooAction = createAction('FOO', async () => {
const { response } = await asyncFoo();
return response;
});
// Use async action
fooAction('123')Last updated
// Create an async action
const fooAction = createAction('FOO', async () => {
const { response } = await asyncFoo();
return response;
});
// Use async action
fooAction('123')Last updated