Closed asyncee closed 7 years ago
Hi,
In your presenter's bindIntent() method you are using the startWith()
incorrect
You you should use .startWith(new FeedItem(...))
rather than
startWith(items -> new FeedViewState(...))
(the later one is never emitting an item).
Btw. you just need to include
compile 'com.hannesdorfmann.mosby3:mvi:3.0.0-alpha3'
in your dependencies. The others are not required with MVI
Oh, thank you, Hannes! What a silly typo. I'm confused, why i did not noticed it earlier. Now it is working. Have a nice day! ;)
Hello, Hannes!
I'm struck with the problem — i wrote a most basic sample project (it is almost copy-paste), launched it and... nothing happened. Let me show a code:
All i get in log is:
FeedPresenter: bind intents FeedActivity: FirstPage completed
and that's all — there are no logs from FeedView::render method (and also
.doOnNext(aBoolean -> Timber.d("intent: load first page"))
is not executed, too).I triple-checked my sources, your sources, your articles and still can not find the problem, the code looks 1:1 similar.
It would be great if you can spend a little time to help me find the bug.
Software versions:
Thanks!