-
Notifications
You must be signed in to change notification settings - Fork 2
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
17 fix auth store refresh page bug #18
Conversation
…ent and default organization and coaching relationship
…ach relationship selection
… and coaching relationship selector component
…o the console for now. Future commit will put this into the dashboard page UI.
…it loads up the list of organizations to select from
…iven user. Also, code formatting updates.
@jim: decided to separate refactoring to include SWR & simplification of state management from the bug. IIt was less about Zustand loosing a stored value on refresh and more about passing the userUUID as a prop (rather than using state) AND leaving the dependency array empty. |
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.
Looks great, a nice simple fix. Thanks very much David - I learned something from this!
Description
Updates the useEffect function to fix the infinite loop occurring on page refresh.
GitHub Issue: [Fixes] #17
Changes
Screenshots / Videos Showing UI Changes (if applicable)
Testing Strategy
Concerns
describe any concerns that might be worth mentioning or discussing