Skip to content

rtk- weather project #10

Open
lesavantdon wants to merge 3 commits into
projectshft:mainfrom
lesavantdon:main
Open

rtk- weather project #10
lesavantdon wants to merge 3 commits into
projectshft:mainfrom
lesavantdon:main

Conversation

@lesavantdon

Copy link
Copy Markdown

No description provided.

@lesavantdon lesavantdon changed the title rtk- weather project first draft rtk- weather project May 29, 2024
Comment thread pages/_app.js
);
}

export default 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.

no need for the _ in the file name

.addCase(fetchWeather.fulfilled, (state, action) => {
state.loading = false;
const newEntries = action.payload.list
.filter((_, index) => index % 8 === 0)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

for readability, the callback filter function should be extracted

import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';

// Convert Kelvin to Fahrenheit
const kelvinToFahrenheit = (kelvin) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kelvin is a unit, not a value, the param name is confusing

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