Effect CommunityEC
Effect Community2y ago
7 replies
gup

(bug?) TypeError when using discard option with Effect.all

currently trying to iterate over a record of effects with Effect.allWith.
i don’t care about the effect results, so I’m using the discard option. however this crashes the program with a typeerror:

https://effect.website/play#c530ae52e62e

see above for simple repro. The code compiles fine, but raises an error when run.

setting discard to false (or omitting it altogether) prevents the error.
Try Effect in your browser and share your code!
Effect Playground
Was this page helpful?