-
Notifications
You must be signed in to change notification settings - Fork 713
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
coach - overly aggressive errors from page title logic as state is changing #11291
Comments
I would love to look into this issue. |
awesome - thank you @ShivangRawat30! i've assigned you 🙂 |
can i work on this? |
Hey @thanksameeelian , I've spent two days on this issue and have some questions. The main problem is that when I navigate from the lesson page to any other page, I receive a SUMMARY from PLAN_LESSONS_ROOT and then PLAN_LESSONS_ROOT from SUMMARY in the console. This occurs because of the following line of code: return classSummary.lessonMap[params.lessonId].title. Interestingly, when I just return classSummary, it works fine, but using classSummary.lessonMap[params.lessonId] results in an unexpected behavior. 2024-01-22.17-36-14.mp42024-01-22.17-44-58.mp4 |
Hi @nick2432, thank you for looking into this! Seems you're onto something related.
Can I understand right that the problem you're referring to can be seen in the first recording when you return from the lesson summary page back to the root page, but shortly before the navigation occurs, there are some calls to retrieve the summary page title despite we're navigating from it?
Could you please send links to related code you're mentioning so that I know where to look at exactly? Alternatively, you can open a draft pull request and push your logging. We could then use pull request comments to talk about relevant places. |
yes
|
@nick2432 Alright, got it. One idea I had was that perhaps finding out why |
@MisRob , I tried a lot, but I don't think I can do this. I'm sorry. Can you please unassign me from this issue? I have some ideas, but I doubt they will work for the original problem. |
Alright @nick2432, thank you for your effort. |
Depends on what's the problem but @rtibbles mentioned that https://vue-meta.nuxtjs.org/ may be handy if this shows to be a higher-level problem with the way we're approaching updating page metadata |
Observed behavior
excessive errors in the console when user deletes a lesson in
Coach
- it appears that as user is automatically navigated away from the page of the lesson that the user just deleted, there are several calls to get page title using the details of the just-deleted lesson, leading to an error as that lesson no longer exists.there do not appear to be any errors related to the actual page the user is automatically navigated to (the class's lesson list page) and its title displays correctly. unnecessary calls are potentially being made to get the previous page title as we are exiting it & subsequent errors are getting logged in the console during the transition away from a page that no longer exists.
Errors and logs
failed-to-obtain-page-title.mov
Expected behavior
Steps to reproduce
Coach
> [select facility &/or class] >Plan
>Lessons
> [create a temporary lesson if necessary] > Select lessonOptions
>Delete
lesson & confirm choice in the modalPlan
>Lessons
pageThe text was updated successfully, but these errors were encountered: