Skip to content

Реализация приложения "Прогноз погоды" - #1

Open
rodionbgd wants to merge 39 commits into
masterfrom
weather_widget
Open

Реализация приложения "Прогноз погоды"#1
rodionbgd wants to merge 39 commits into
masterfrom
weather_widget

Conversation

@rodionbgd

Copy link
Copy Markdown
Owner

No description provided.

Repository owner deleted a comment from gitguardian Bot Nov 13, 2021
Comment thread .eslintignore Outdated
Comment thread .eslintignore Outdated
Comment thread src/menu/slip.js Outdated
Comment thread .gitignore
Comment thread src/add_remove_city.ts
return;
}
removedCity.remove();
localStorage.removeItem(removedIndex);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

можно конечно и так, но если с редаксом работаешь - это лучше вынести в middleware

Comment thread src/add_remove_city.ts
import { menuCityList, store } from "./index";
import { addCity, removeCity } from "./reducers/cities";

export function addNewCity(city: City) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

и для этого прекрасно подходят redux-thunk, тогда не пришлось бы связывать эти фукнции с store

Comment thread src/city_name.ts Outdated
Comment on lines +24 to +25
let c;
let lc;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

это еще что ? не нужно так называть переменные, пожалуйста

Comment thread src/slider.ts
Comment thread src/types.ts Outdated
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