Skip to content

Build every slice initial state from its own factory - #2

Closed
ccombe wants to merge 1 commit into
followup/type-only-importsfrom
followup/slice-initial-factories
Closed

ccombe wants to merge 1 commit into
followup/type-only-importsfrom
followup/slice-initial-factories

Conversation

@ccombe

@ccombe ccombe commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • open, focus, and edit now start from initialOpenState, initialFocusState, and initialEditState.
  • initial.ts no longer mixes those inline objects with the drag, selection, and dnd factories.

Based on followup/type-only-imports.

Test plan

  • yarn lint
  • yarn workspace react-arborist test: 13 suites, 138 tests, no console warnings

initial.ts still inlined open, focus, and edit while drag, selection, and dnd already came from factories. Each store now gets those three from the slice factories too.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ccombe

ccombe commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

This commit is already on untangle-circular-deps, which is the head of jameskerr#400. Closing so it is not reviewed twice.

@ccombe ccombe closed this Nov 9, 2026
@ccombe
ccombe deleted the followup/slice-initial-factories branch November 20, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant