It looks like the "catchup" event fires before the final change.
There is a lot of code between receiving the JSON bob with .seq in it, and actually firing a "change" event if the caller wants to see it. Unfortunately the "catchup" logic happens in the former part of the code, when it should actually be the last thing done when processing data.
It looks like the "catchup" event fires before the final change.
There is a lot of code between receiving the JSON bob with
.seq
in it, and actually firing a "change" event if the caller wants to see it. Unfortunately the "catchup" logic happens in the former part of the code, when it should actually be the last thing done when processing data.See https://github.com/iriscouch/follow/blob/master/lib/feed.js#L470-484