First off; Maybe even from the title I am already doing something wild but I at least want to see if this is possible or not. I have tried looking through examples and previous posts here but I can't find something that is exactly what I am trying to figure out.
I have a screen showing a list of
Notes. Tapping one of them brings me to a screen displaying it's content. Bits of text etc. I am using
My process is dispatching an action that stores a piece of state for the ViewController being presented to use, the
Note that was clicked. Once that piece of state is set, I then return an
Effect that goes to a
Navigation reducer that will display the screen. I am currently experimenting with
RxFlow as I like a
Coordinator pattern for navigation and wanted to check this out, however, even hackily trying to present it without this approach does not work either.
It appears that when I am trying to display a screen from inside the TCA flow the
store that is provided to the ViewController is the previous one. I can confirm that the state contains the right information after both the
navigate actions are processed. However, I can hackily use
DispatchQueue.main.async to avoid this, I want to know if there is something obvious I am missing? Or if this is a completely incorrect approach for something like this.
I would enjoy having the ability of navigating through the TCA flow, rather than always having to do something that goes back to the ViewController for it to then present the screen. I hope I have made sense, if there is something confusing please feel free to ask for clarity as it's quite late for me right now