Skip to content

Carly Burkhart - Redux-Weather Final#81

Open
TimeIsOnMySide wants to merge 8 commits intoprojectshft:masterfrom
TimeIsOnMySide:master
Open

Carly Burkhart - Redux-Weather Final#81
TimeIsOnMySide wants to merge 8 commits intoprojectshft:masterfrom
TimeIsOnMySide:master

Conversation

@TimeIsOnMySide
Copy link
Copy Markdown

No description provided.

import { createStore, applyMiddleware } from '@reduxjs/toolkit'
import { Provider } from 'react-redux'
// import promiseMiddleware from 'redux-promise'
import CitySearch from './components/CitySearch'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CitySearch and Forecast had incorrect paths, should be
import CitySearch from './components/citySearch'
import Forecasts from './components/forecasts'

import rootReducer from './reducers/index'
import thunk from 'redux-thunk'

function App() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would advise to use functional expressions instead of declarations


import axios from 'axios'

export const FETCH_FORECAST = 'FETCH_FORECAST'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semi-colons at the end of a lot of lines

// Something happened in setting up the request that triggered an Error
console.log('Error', error.message)
}
// console.log(error.config)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a good practice to clean up any unused code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants