Closed colbycheeze closed 8 years ago
Update on this: I've finished the Role Switcher component to accept the role data and fire off corresponding functions from props.
Now I am finishing up refactoring the demos reducer to properly mold the api call data into the state and associate users with their store.
The data fetching action is kicked off by entering the route now, instead of the component being mounted.
I just have to finish up writing in the login piece that is fired off after the demo gets called (which is mostly just refactoring since I have most of it)
Then I can hook them up and we should be good. I think it will take another day and it should be done.
Story #2
This is related to controlling the demo from the meta level, switching roles etc.
switchRole
andcreateNewManager
Since this requires hooking up to redux, wrapping in a HoC to pass the state/actions, and firing off api calls etc it can be a chance for you to learn how that stuff works.