-
Notifications
You must be signed in to change notification settings - Fork 24
fix(RouterSource): Initialize this._history$ with _runSA.remember #51
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
Conversation
…n each member function independently, update dependency versions for xstream-adapter and xstream
|
I can see how this would work with xstream, because it will continue to be a MemoryStream, but I have to say I'm very surprised the tests continue to pass with Rx 4 and Rx 5 as 'memory' only occurs where it is explicitly called. I'd love to see some example code where the previous behavior broke something if you could find the time to do so. |
|
I've posted a branch of my routing example repo which demonstrates the issue here: https://github.com/ntilwalli/routingWithState/tree/rememberIssue You'll see that I explicitly add a listener to the |
|
@ntilwalli Does the issue still persist if the member functions still call remember as well as adding remember to the root history$? I think they would be necessary for all other stream libraries other than xstream. |
|
The issue does still persist if the member functions call remember. Here's the console output After the When I remove the calls to |
|
I've had trouble constructing a failing test-case, but it should be pretty quick to reproduce. Here are the steps:
|
|
The initial values from both, and |

I encountered an issue where the the defined route stream was not emitting even though I could listen to the history$ and the route should have matched. I fixed it by making a common
remembercall on the StreamAdapter. I haven't tracked down why this fixed my issue, but I created this PR not necessarily to get it merged but to at a minimum have a discussion about the root cause.