-
Notifications
You must be signed in to change notification settings - Fork 3
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
CMDCT-2794 (Pt. I): Setup MCR w/ Zustand for State Management #11518
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app starts up, old context stuff works (like admin banner), no console errors
⭐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worked as expected in browser
Code Climate has analyzed commit d57cfbc and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 94.7% (90% is the threshold). This pull request will bring the total coverage in the repository to 95.8% (0.0% change). View more on Code Climate. |
Description
Converting the state management of MCR from
Context API
toZustand
(following the patterns implemented inMFP
).This PR covers the initial setup:
UserProvider
+ corresponding testsRelated ticket(s)
CMDCT-2784
How to test
Running this locally, you should be able to log in / log out from MCR as expected.
Optionally: install the Redux Devtools Chrome extension or the Firefox Redux Devtools extension
You should see the
user
object and a few other initial states on the extension ✨Important updates
cd services/ui-src yarn install
Author checklist
convert to a different template: test → val | val → prod