© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Reason for tapError 2nd arg being a function that must return an Effect - Effect Community
EC
Effect Community
•
3y ago
•
8 replies
Lab3ss
Reason for tapError 2nd arg being a function that must return an Effect
Hi
, nooby question I guess
.
.
Why tapError 2nd arg is a function that must return an Effect
? Is there a noop Effect or good practice if I just want to do something like
:
Effect.
tapError
(myEffect, ()
=>
{
spinner.
fail
();
}),
Effect.
tapError
(myEffect, ()
=>
{
spinner.
fail
();
}),
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
Choosing Between `(arg: T) => Effect.gen(function*(){})` and `Effect.fn(function*(arg: T){})`
EC
Effect Community / 🚀-beginners
2mo ago
Difference in Return Requirements for `tap` and `tapError` in Effect
EC
Effect Community / 🚀-beginners
2mo ago
How to represent a function with a boolean return type as an Effect for mapping?
EC
Effect Community / 🚀-beginners
2y ago
Understanding `Effect.try` with a Function that Throws an Error
EC
Effect Community / 🚀-beginners
4mo ago