-
Notifications
You must be signed in to change notification settings - Fork 116
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
Initiating a step from a completion inside of a sink for Future Published (Combine) #193
Comments
My understanding of Combine is limited, other than its similarity to RxSwift in functionality. The red flag here in my opinion is the Can you create a small sample project that recreates the issue? |
Hey @mgray88 Thanks for coming back so quick. Yes, I checked that issue but not sure if it was related and the workaround is not clear. Thanks |
It sounds quite similar to the other issue, especially when you mention the sometimes works, sometimes doesn't when there is no delay. Our workaround to the original issue in #134 was to use main.async which then caused the "sometimes works" problem. @ssaluk's workaround posted in this comment was to move logic to |
This issue has not received any recent updates. |
This issue has automatically been closed due to inactivity. |
Hi Guys,
I am working in a new applications trying your library and there is something really weird.
I am using combine to make async calls to rest api (specifically Future Publisher).
When I complete a call with and return the value it goes to the completion code of the sink, example like the following
when I go to the sink I need to react and do some redirection to a new Screen
as you can see I am using the receive(on: DispatchQueue.main) so the completion code runs on the main thread, what is suppose to be the right for your Step to run like the following:
but interesting enough, if I do the code like above, the flow does not react to the step and the navigation does not work.
Now if I do this:
Then the flow is triggered perfectly and it navigates to the next screen without changing a single line more in the code.
That tells like ... the code does not run in the main thread? but actually it does because I made this
to make sure I was on the main thread, so it was but still RxFlow does not react.
Any suggestion? am I doing something wrong or unexpected?
Thanks and appreciate your work for this library.
Cheers
Maximo
The text was updated successfully, but these errors were encountered: