badoo / MVICore

MVI framework with events, time-travel, and more
https://badoo.github.io/MVICore/
Other
1.27k stars 90 forks source link

Multiple Feature Binding #115

Open airatlovesmusic opened 5 years ago

airatlovesmusic commented 5 years ago

How can I handle multiple Feature to View bindings? Where ViewModels should be merged into one to render in View? Do you have any examples of this?

ShikaSD commented 4 years ago

Hi, @airatlovesmusic Sorry for a long reply. We usually use combineLatest or withLatestFrom for this type of use cases. However, note that this is not recommended for more than two features, as this tend to complicate logic of binding and transformations.

See #54 for more details.