© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Running an effect before the 'main' app without leaving effect-world - Effect Community
EC
Effect Community
•
2y ago
ts
Running an effect before the 'main' app without leaving effect-world
I want to run an effect before my
"main
" app
. Right now
, I
'm effectively doing
void
premain.
pipe
(runPromise).
then
(main.
pipe
(
/* ... */
, runMain));
void
premain.
pipe
(runPromise).
then
(main.
pipe
(
/* ... */
, runMain));
Is there a way without leaving
-and
-re
-entering effect
-world
?
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Ensuring All Expected Errors Are Handled Before Running an Effect
EC
Effect Community / 🚀-beginners
7mo ago
Seeking Guidance on Running an Effect App in the Browser with Pyodide
EC
Effect Community / 🚀-beginners
8mo ago
Running an Effect N Times Concurrently
EC
Effect Community / 🚀-beginners
9mo ago
Running an Effect Inside an Option in TypeScript
EC
Effect Community / 🚀-beginners
13mo ago