Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const fetchUsersAction = dispatch => {
- getData('users').then(snapshot => {
- dispatch({
- type: 'FETCH_USERS',
- payload: snapshot.val()
- });
- }).catch(err => {
- console.error(err)
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement