funkia / turbine

Purely functional frontend framework for building web applications
MIT License
685 stars 27 forks source link

filterApply undefined behavior bug #90

Open stevekrouse opened 5 years ago

stevekrouse commented 5 years ago
filterApply(Behavior.of(undefined).map(() => () => true), stream).log()

Upon an event from stream errors: predicate.at(...) is not a function.

If you replaced undefined with 1, the error goes away.

paldepind commented 5 years ago

That looks like a bug to me. It's really more a Hareactive than a Turbine bug though. But whatever we can keep it here :smile:

stevekrouse commented 5 years ago

Sounds good - happy to move it if you'd like. Just let me know :)