Repository navigation
Conversation
✅ Deploy Preview for react-arborist ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
1 task
ccombe
force-pushed
the
untangle-circular-deps
branch
from
October 21, 2026 09:27
60fbd8c to
40ddf4c
Compare
Contributor
Author
|
Moved out of the migration stack: this work does not depend on |
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.
Part 4 of the @dnd-kit migration stack (#390).
Note: This PR is in draft mode and branches from #393 (
guard-clauses-and-cleanup). Once preceding PRs are merged, this branch will be rebased ontomain.Summary
Untangles 21 circular dependency loops across the library, achieving a completely acyclic module graph (
0 circular dependenciesconfirmed viamadgeon built output).Changes
interfaces/tree-api.ts: Remove UI component imports (DefaultContainer,DefaultRow,DefaultNode,DefaultDragPreview,DefaultCursor), eliminating circular imports with component renderers andcontext.ts.components/row-container.tsx,components/cursor.tsx,components/default-drag-preview.tsx: Resolve default fallbacks locally rather than depending onTreeApicircular imports.interfaces/node-api.ts&data/create-root.ts: RelocateROOT_IDto break the bidirectional cycle betweennode-apiandcreate-root.state/drag-slice.ts,state/dnd-slice.ts,state/selection-slice.ts,state/initial.ts: Define slice-local initial state constants to decouple slices frominitial.tsandroot-reducer.ts.types/renderers.ts,types/tree-props.ts,types/handlers.ts,types/utils.ts): Useimport typeto ensure zero runtime dependency emissions.Verification
madge --circular modules/react-arborist/dist/module/index.jsreports 0 circular dependencies.yarn workspace react-arborist test).yarn workspace e2e test).