baconjs / bacon.js

Functional reactive programming library for TypeScript and JavaScript

Home Page:https://baconjs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Events skipped with a scenario involving groupBy

raimohanska opened this issue · comments

Trying to group incoming keyup/keydown events by address and filling some missing data to keyups from the previous keydown from same address. Somehow the first keyup per group is missed.

https://jsfiddle.net/xcvwocrt/

This happens due to the usage of Bacon.once in the implementation of groupBy. The fiddle can be patched by adding delay(0) as in here: https://jsfiddle.net/xcvwocrt/1/