hiposfer / hive

Your go-to routing app for public transport
GNU Lesser General Public License v3.0
10 stars 0 forks source link

consider generalizing `using` to return a component not a channel #62

Closed carocad closed 6 years ago

carocad commented 6 years ago

Currently we only give the channel to the passed function.

This has the problem that we need to create lots of channel pipelines just to get things forwarded. See geocoding service for an example of the code duplication introduced: https://github.com/hiposfer/hive/blob/reagent/src/hive/services/geocoding.cljs

If instead of returning a channel we would return the service itself, then we can avoid this forwarding all together.

carocad commented 6 years ago

this no longer applies as we dont use component framework anymore