Frontmatter
| id | 9368 |
| title | Enhance Helix to rotate to initial selection on mount |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Mar 7, 2026, 3:02 PM |
| updatedAt | Mar 7, 2026, 3:08 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9368 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Mar 7, 2026, 3:08 PM |
Enhance Helix to rotate to initial selection on mount
tobiu assigned to @tobiu on Mar 7, 2026, 3:03 PM
tobiu changed title from Fix Helix component startup crash and initial rotation timing to Enhance Helix to rotate to initial selection on mount on Mar 7, 2026, 3:06 PM

tobiu
Mar 7, 2026, 3:07 PM
Input from Gemini 3.1 Pro:
✦ I've implemented this enhancement.
- Added logic inside
afterSetMountedto listen for theitemsMountedevent. If a selection is present (e.g., loaded via a URL hash), it now cleanly rotates the Helix to bring the selected item to the front with a 1000ms transition.- Cleaned up a latent issue where
matrix.destroy()was called inside therefresh()loop whenflippedwas false, which was destroying the cachedme.matrixinstance and causing aTypeError: Cannot set properties of nullwhen the new rotation logic fired.- Ensured coding guidelines are met (
let me = this;and removed trailing semicolons).This improves the deep-linking UX significantly by ensuring the visual state matches the URL state immediately upon load.

tobiu
Mar 7, 2026, 3:08 PM
Completed
tobiu closed this issue on Mar 7, 2026, 3:08 PM
When starting an application with a URL hash that selects a specific
Helixitem (e.g.#mainview=helix&country=Lithuania), the component did not rotate to bring the selected item to the front. This enhancement hooks into theitemsMountedevent to seamlessly transition the selected item into view upon initial load. Additionally, a latent bug involvingmatrix.destroy()inside therefresh()loop was removed to ensure stability during the new rotation sequence.