fable-compiler / fable-arch

Framework for building applications based on the elm architecture.
https://fable-compiler.github.io/fable-arch/
Apache License 2.0
60 stars 14 forks source link

Allow Async tasks as Actions returned by update #20

Closed savuori closed 8 years ago

savuori commented 8 years ago

This would make asynchronous tasks like ajax calls cleaner.

mastoj commented 8 years ago

Thanks for your feedback @savuori, but after discussing it on gitter I think I can safely close this. To achieve almost the same thing as in elm you can basically write a one line function, let perform err succ fn = fn err succ. If this would be added I think it makes more sense to add it to some core extension library than to fable-virtualdom.