raquo/Airstream

FetchStream does not emit events if it's initialized outside of a transaction

raquo opened this issue · 1 comments

raquo commented

I'm not yet sure what the exact problem is, or whether it's specific to FetchStream or not.

raquo commented

The problem is specific to FetchStream. As a temporary workaround you can replace FetchStream.get(...) with EventStream.unit().flatMap(_ => FetchStream.get(...)). This initializes FetchStream in a new transaction created by flatMap, avoiding the bug.