Skip to content

Add operation chains#112

Merged
cowboyd merged 1 commit intomainfrom
chain
Jan 5, 2026
Merged

Add operation chains#112
cowboyd merged 1 commit intomainfrom
chain

Conversation

@cowboyd
Copy link
Member

@cowboyd cowboyd commented Jan 2, 2026

Motivation

We need an example of how to fill the gaps in between Effection Operations and Vanilla Javascript Promises. Originally, we were just going to put code-snippets into the FAQ, but if we're going to do that, why not provide some snippets that can actually be run.

Approach

This adds an @effectionx/chain package that let's you chain together operation in almost exactly the same way that you would chain together Promises.

Once we have refined this interface, we should consider it for inclusion into the core as a new Operation constructor.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 2, 2026

Open in StackBlitz

npm i https://pkg.pr.new/thefrontside/effectionx/@effectionx/chain@112

commit: 7a1022a

@cowboyd cowboyd merged commit ffa127b into main Jan 5, 2026
6 checks 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.

2 participants