You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve React hooks and error handling bugs in OAuth config UI
Critical fixes:
- Fix infinite loop in useEffect by removing stale closure on providers state
- Create fresh defaultProviders object instead of spreading existing state
- Add error state management with user-visible error messages
- Improve error handling with typed catch blocks
- Display errors in UI with auto-dismiss after 5 seconds
- Add XCircle icon for error display
These bugs would have caused:
1. Infinite re-renders when loading OAuth configs
2. Silent failures with no user feedback on errors
3. React warnings about missing dependencies
0 commit comments