Skip to content

Improve action creators #7

Merged
edvincandon merged 5 commits intomainfrom
improved-action-creators
Feb 23, 2026
Merged

Improve action creators #7
edvincandon merged 5 commits intomainfrom
improved-action-creators

Conversation

@edvincandon
Copy link
Member

  • Fix auto-transitionId bug where amend extracts ID from the amended entity instead of targeting the original transition
  • Restrict auto-transitionId detection to STAGE only — all other operations require explicit transitionId
  • Extract resolveTransition as a pure curried function for testability
  • Inline crudPrepare into src/actions.ts, delete src/actions/ directory
  • Extract intermediate type helpers (PreparePayload, PrepareError, ActionMeta, TransitionArgs) for readability
  • Hoist stateless emptyPA/errorPA to module-level constants

@edvincandon edvincandon merged commit a6ff091 into main Feb 23, 2026
1 check passed
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