-
Notifications
You must be signed in to change notification settings - Fork 11
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
Variant icons leads to the wrong postion on the variant details page #1315
Comments
This changed with the integration of REEV. I will re-evaluate the behavior. |
RCAThe issue persists with REEV, but the root cause is different. The router library is used to address the section to jump to, but the page builds too slowly as it is dynamically loaded so that the jump can't take place. |
Solution proposalIt is clear that we can't make router wait for the page to be loaded.
|
@stolpeo the router does not jump itself. Rather it passes a prop into the top level Vue view. That is, in the view you can wait/react on that prop and all stores to finish loading. Be careful with watching store state, this often triggers loops. Rather set a periodic timer that runs every 100ms and jumps once after everything has loaded and then deactivates itself by some means. |
@stolpeo actually watching store state for jumping should be ok as we don't write. Calling into store on watching store state can be dangerous and should be done after careful consideration. E.g. done -> trigger load -> done ... |
Describe the bug
When clicking or the first time on the variant icon for flags, comments and ACMG, the links leads to the top of the variant details page and not to the specific position for flags, comments or ACMG. After going back from the variant detail page to the variant filter page an clicking agian on one of these icons, the links leads now to the specific postion. This is the case for every variant. So the first time clicking on an icon the linkt leads to the top of the variant details page. Going back to the variant filter page and clicking again leads to the specific postion on the variant details page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Clicking on the icons should lead to the specified postion on the variant details page.
Desktop (please complete the following information):
le an clicking agian on one of these icons, the links leads now to the specific postion. This is the case for every variant. So the first time clicking on an icon the linkt leads to the top of the variant details page. Going back to the variant table and clicking again leads to the specific postion on the variant details page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Clicking on the icons should lead to the specified postion on the variant details page.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: