Open rufat opened 2 months ago
To tackle the onboarding loop and language auto-switch issues you're experiencing with cal.com, here are some specific steps and insights:
Onboarding Loop: This issue might be due to the application not properly updating or checking the user's onboarding completion status. Investigate the navigation logic in apps/web/pages/getting-started/[[...step]].tsx
, focusing on how the currentStepIndex
and completion status are managed. Ensure that once the onboarding is completed, a flag is set in the user's profile to prevent re-entry into the onboarding flow.
Language Auto-Switch: The problem could be related to the initialization and persistence of the user's language preference. Check the implementation of the useLocale
hook, which should save the language preference (e.g., in local storage or a backend database) and load it upon application startup. This is crucial for maintaining consistent language settings across sessions.
For the React Minified JS Errors, ensure your project's build setup includes source maps to help trace errors back to their original source code. Also, review the use of React features and hooks for potential issues, such as incorrect useEffect
dependencies or state updates on unmounted components, which could lead to errors.
Addressing these specific areas should help resolve the issues you're facing.
To continue the conversation, mention @dosu.
Issue Summary
I encountered a bug. When I uploaded my profile picture at the onboarding, it navigated me to the dashboard, and then the onboarding started over again. All my settings were saved, so, I quickly returned to the dashboard again by pressing the next button each time.
Also, it is weirdly switching the languages back and forth. also, there are some react minified js errors. I feel lag when I navigate through the pages.
Steps to Reproduce
Actual Results
Expected Results
Technical details
Evidence
https://github.com/calcom/cal.com/assets/5330471/e152f853-1a0d-4b47-95a1-13e056e50f20
CAL-3745