Frontmatter
| id | 365 |
| title | Covid.view.MainContainerController: onHashChange() refactoring |
| state | Closed |
| labels | enhancementstale |
| assignees | [] |
| createdAt | Mar 24, 2020, 8:35 PM |
| updatedAt | Sep 28, 2024, 4:31 AM |
| githubUrl | https://github.com/neomjs/neo/issues/365 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 28, 2024, 4:31 AM |
there is a check in place if data got loaded and if not use a setTimeout() call.
this was just a quick hack.
onHashChange needs to store the params of its last call inside the class.
in case the api is loading or there is no data available => do nothing.
instead, when data got loaded, trigger onHashChange afterwards. Best with a 50-100ms delay to ensure the data got mounted into the real dom already.