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
i'm having an issue with the latest flyd relative to a prior version. it seems like s.end(true) is failing to end the stream. in my case this is causing an infinite loop and stack explosion:
varsub=flyd.on(val=>{// this check ignores the initial call during subscriptionif(!sub)return;sub.end(true);then();},s);
You are assuming that the method passed to flyd.on will run immediately. This is not the case if it happens inside a stream body. This is unfortunately flyd working as intended.
It seems the function you passed to flyd.on is trying to do two things:
drop 1 value
execute only once
We can implement this generically as drop and take
hey @paldepind,
i'm having an issue with the latest flyd relative to a prior version. it seems like
s.end(true)
is failing to end the stream. in my case this is causing an infinite loop and stack explosion:v0.2.6
works:https://jsfiddle.net/tbtpoxwk/
master
(Maximum call stack size exceeded):https://jsfiddle.net/tbtpoxwk/1/
i haven't done a bisect to figure out which commit broke things :/
The text was updated successfully, but these errors were encountered: