Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Move user/session information into a UserProvider rather than in redux #2254

Open
jackcmeyer opened this issue Jul 28, 2020 · 0 comments
Open
Assignees
Labels
🚧blocked issue cannot be worked on for some reason core-team indicates that the issue will be completed by a core team member 🚀enhancement an issue/pull request that adds a feature to the application
Projects
Milestone

Comments

@jackcmeyer
Copy link
Member

🚀 Feature Proposal

As part of the removing redux, this issue is to move user/session information into a UserProvider rather than stored in redux.

The UserProvider should follow the pattern outlined here: https://kentcdodds.com/blog/how-to-use-react-context-effectively/.

The Login component will be responsible for setting the user information and there should be a hook useUser that allows access to user information

@jackcmeyer jackcmeyer transferred this issue from HospitalRun/hospitalrun Jul 28, 2020
@jackcmeyer jackcmeyer added core-team indicates that the issue will be completed by a core team member 🚧blocked issue cannot be worked on for some reason 🚀enhancement an issue/pull request that adds a feature to the application labels Jul 28, 2020
@jackcmeyer jackcmeyer self-assigned this Jul 28, 2020
@jackcmeyer jackcmeyer added this to To do in Version 2.0 via automation Jul 28, 2020
@jackcmeyer jackcmeyer added this to the v2.0 milestone Jul 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚧blocked issue cannot be worked on for some reason core-team indicates that the issue will be completed by a core team member 🚀enhancement an issue/pull request that adds a feature to the application
Projects
Version 2.0
  
To do
Development

No branches or pull requests

1 participant