Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response of the View layer #141

Open
liamxujia opened this issue Apr 14, 2020 · 2 comments
Open

Response of the View layer #141

liamxujia opened this issue Apr 14, 2020 · 2 comments

Comments

@liamxujia
Copy link

When I use Observable(.just(Reactor.Action.some)).bind(to: reactor.action).disposed(by: disposeBag) , How do I observe the whole process(since Action start until return Mutation), because I'm trying to call do() , it retrun onCompleted, This makes it difficult for me to handle the response of the View layer, such as starting and stopping an animation in the View layer.

@ripplek
Copy link

ripplek commented Apr 14, 2020

That is what I do:
Observable.just(Reactor.Action.some(handle: () -> Void))

@devxoul
Copy link
Member

devxoul commented Apr 19, 2020

You may use transform():

func transform(action: Observable<Action>) -> Observable<Action> {
  return action.debug("action")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants