Skip to content

v0.8.0

Compare
Choose a tag to compare
@Bloomca Bloomca released this 04 Oct 20:23
· 15 commits to master since this release

Now dispatching tile functions returns the same interface as a selector, so we can avoid writing cumbersome dispatch and then selectors with the same params.
So, this from the past README:

// login user
await dispatch(actions.tiles.user.authRequest(params));
    
// check the result
const { data: { id }, error } = selectors.tiles.user.authRequest(getState());

We can just write more elegantly now:

const { data: { id }, error } = await dispatch(actions.tiles.user.authRequest(params));