v4.0.0-beta.3
Pre-release
Pre-release
didierfranc
released this
11 Jun 20:46
·
82 commits
to master
since this release
- One word has changed in source code 9ad7163#diff-1fdf421c05c1140f6d71444ea2b27638R64
- You can now pass actions to actions π, it has been inspired by @ktunkiewicz in this huge discussion
Basic example
getMovies: async (_, actions, load) => {
if (!load) await actions.getMovies(true)
else return { movies: { loading: true } }
const data = await fetchMovies()
return { movies: { loading: false, data } }
}
β You'll find this example in context here