Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add state management #2

Open
rashil2000 opened this issue Dec 1, 2020 · 2 comments
Open

Add state management #2

rashil2000 opened this issue Dec 1, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@rashil2000
Copy link
Member

To improve the general performance and reliability of the frontend, Redux state management should be added to manage API requests and dispatch actions.

@rashil2000 rashil2000 added the enhancement New feature or request label Dec 1, 2020
@rashil2000 rashil2000 added this to the Reduxification milestone Dec 1, 2020
@rsriramc
Copy link
Contributor

rsriramc commented Dec 6, 2020

I would like to contribute and take up on this issue.

The changes to code organization (project structure) during the Reduxification can be as follows:

  • Authentication can be moved to the Redux Store since that keeps the logic of Authentication seperate from the individual components to make them clearer.

  • Changing the Theme: About.js and App.js, Both have code for changing the theme. Also accessing, modifying the theme in the store would be helpful.

  • Storing the posts in the Redux store. Posts on the homepage and Profile page are fetched from the backend each time that page is visited. So reduxifying this decreases the number of network calls.

  • For later purposes, we can also store the comments on the posts in the Store.

@rashil2000
Copy link
Member Author

Great! I have assigned this issue to you. Let's start working!

Keep in mind the milestone for this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants