hash-ir / hash-ir/full-stack-open
React component should sort the bloglist instead of each reducer (part7/redux-bloglist)
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
With the use of Redux store, the `blogs` resource is available on the frontend and could be modified in the component that requires it before rendering e.g. sorting based on likes. This will prevent each reducer from having to sort the list before modifying the state:
https://github.com/hash-ir/full-stack-open/blob/77cf753c709c8fe212ad5b5d08c10e11c61fc82e/part7/redux-bloglist/frontend/src/reducers/blogReducer.js#L8-L32
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.