dbrattli / Fable.Reaction

Fable Reaction - Reactive (AsyncRx) for F# Elmish and Fable
http://fablereaction.rtfd.io/
MIT License
142 stars 19 forks source link

A more realistic sample is needed #5

Closed albertwoo closed 5 years ago

albertwoo commented 6 years ago

I try to play with this library, but I did not know how to deal with multiple pages or components. Like in the AutoComplete sample, how can I compose the AutoComplete component with other component? How to compose those query elegantly? Thanks!

dbrattli commented 6 years ago

Thanks for the feedback. I have't looked much into scalability yet, but it should be easier now after watching Scaling Elmish Applications by Zaid Ajaj at Fableconf. There are also changes coming that will make it possible to have different queries depending on the model, thus separate pages can have separate queries etc.

dbrattli commented 5 years ago

You can now check out the Magic example for how to compose streams. Streams are different from queries in that they can be changed based on the current model: https://github.com/dbrattli/Elmish.Streams/tree/master/examples/Magic

albertwoo commented 5 years ago

Thanks, will try :)

dbrattli commented 5 years ago

AutoComplete now rewritten as a component. Components are symmetric in the sense that a component does not really know if it's the main application, a component or a sub-component. https://github.com/dbrattli/Elmish.Streams/tree/master/examples/Autocomplete/src/Client