Skip to content
Snippets Groups Projects

Resolve "Documentation for redux"

Merged Albin Henriksson requested to merge 89-documentation-for-redux into dev
11 files
+ 61
0
Compare changes
  • Side-by-side
  • Inline
Files
11
/*
This file handles actions for the cities redux state
*/
import axios from 'axios'
import { AppDispatch } from './../store'
import Types from './types'
// Action creator to get all cities from api and send appropriate actions to reducer
export const getCities = () => async (dispatch: AppDispatch) => {
await axios
.get('/api/misc/cities')
Loading