2.2.0
New: Built-in support for async functions and actions that return promises!
connect('foo', {
async getFoo(state) {
return { foo: await (await fetch('/foo')).json() }
}
})
New: Built-in support for async functions and actions that return promises!
connect('foo', {
async getFoo(state) {
return { foo: await (await fetch('/foo')).json() }
}
})