Skip to content

✨ Add Main api#1102

Merged
cowboyd merged 1 commit intov4-1-alphafrom
main-api
Feb 5, 2026
Merged

✨ Add Main api#1102
cowboyd merged 1 commit intov4-1-alphafrom
main-api

Conversation

@cowboyd
Copy link
Member

@cowboyd cowboyd commented Feb 5, 2026

Motivation

In order to implement the inspector, we need to be able to wrap code around the main function that will run around the main entry point. This lets you do one time setup and one-time teardown.

#Approach

This adds a Main Api which has a single function main(body) which allows you to wrap the main entry point.

In order to implement the inspector, we need to be able to wrap code
around the main function that will run around the main entry point.
This lets you do one time setup and one-time teardown.
@cowboyd cowboyd requested a review from jbolda February 5, 2026 02:03
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 5, 2026

Open in StackBlitz

npm i https://pkg.pr.new/thefrontside/effection@1102

commit: 4d06b74

@cowboyd cowboyd merged commit 8c6700f into v4-1-alpha Feb 5, 2026
5 checks passed
@cowboyd cowboyd deleted the main-api branch February 5, 2026 03:07
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