You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User szethh encountered a TypeError when using the discard option with Effect.allWith on a record of effects. The code compiles but crashes at runtime.
The error does not occur if discard is set to false or omitted.
Workaround:
User whatthebluck found that using an array instead of a record works without causing the error:
Summary
Summary:
Issue Description:
szethh
encountered aTypeError
when using thediscard
option withEffect.allWith
on a record of effects. The code compiles but crashes at runtime.discard
is set tofalse
or omitted.Workaround:
whatthebluck
found that using an array instead of a record works without causing the error:Further Confirmation:
datner_
confirmed the issue and noted that it also occurs with the more idiomatic form usingEffect.all
:allWith
and happens regardless ofconcurrency
andbatching
settings.mode
besidesdefault
works as expected.Key Takeaways:
discard
option withEffect.all
orEffect.allWith
on a record of effects.concurrency
orbatching
settings but is specific to thedefault
mode.mode
can serve as a temporary workaround.Discord thread
https://discord.com/channels/795981131316985866/1249714696974766150
The text was updated successfully, but these errors were encountered: