Skip to content

v4.0.0-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@didierfranc didierfranc released this 11 Jun 20:46
· 82 commits to master since this release

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