Repository navigation
[OBEZS] fix(ui): the memory map's hit flash no longer crashes the page - #90
Merged
den-vasyliev merged 2 commits intoNov 21, 2026
Conversation
The d3 barrel is sideEffects:false and nothing reads its transition export, so the production bundle lacked d3-transition's patch of selection.interrupt/transition. Import d3-transition explicitly where the map uses them and declare it as a dependency.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the 2.10.0 production build the map's hit flash throws
a.interrupt is not a functionand the page shows "This page couldn't load":d3issideEffects: false, nothing reads its transition export, so the bundle dropsd3-transition, which is what addsselection.interrupt()and.transition().memory-graph.tsxnow importsd3-transitionfor its side effect, andui/package.jsonlists it as a direct dependency (3.0.2, already in the lockfile, still one copy ofd3-selection). Nothing else inui/callsinterruptortransitionon a selection.Vitest loads d3 unbundled, so a unit test cannot catch this; the proof is the export:
prototype.interrupt=is absent fromout/_next/staticbefore and present after.npm run lintandnpm test(102/102) pass. Running on two of our instances since 2026-11-21: a voice search flashes the map (3 regions on one, 2 on the other) with no page error.Fixes #ISSUE.