-
Notifications
You must be signed in to change notification settings - Fork 948
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
Multiple clients on reloading the app #193
Comments
re: connection: Yes, that will establish a new connection. I have a feeling you don't want that. Can you give me a sense of what you'd expect? re: saga: Oh? That's not right. Does it that PUT actually ever complete successfully? If it does, it should absolutely log. |
Hm.. Maybe on reload I expect to disconnect from the last connection and establish the new one, maintaining total 1 clients online. Every time I reload I see 2,3,4,5+ clients online. this is just weird. Regarding the PUT, it worked before the update. If we take LoginSaga as an example, I see LOGIN_REQUEST on console, but neither LOGIN_FAILURE, LOGIN_SUCCESS are shown. |
Agreed. I'll have to try to reproduce the lingering connections. That's not right at all. I'll have a closer look at what you're saying for the Sagas too. That too is not right. Double bug day! |
Sorry, one more thing... this was in the CLI right? |
Yes, it's CLI |
Not sure it's the reason, but keeping reactotron's enhancer first in the |
Great point @zalmoxisus . It should go first into the enhancer list. (or at least before sagamiddleware). I wonder if this is because of something strange I'm doing in my enhancer. I'll take another look shortly. I'll admit, the middleware/enhancer chaining stuff bends my brain. |
Had the same problem with actions triggered by saga's
|
Thanks @ywongweb. I'll have to have a closer look at the source code for Redux to see exactly what's going on here. I feel like there's two ways to do it and they're both wrong. Ha! Probably something silly I'm doing in my code. |
As a temp fix, thanks @ywongweb |
Problem now, is you might not be able to dispatch from Reactotron. 🐔 🍳 |
@skellock, you're not doing anything silly. It's a known problem for Redux store enhancers that is fixed by reduxjs/redux#1702, and will be shipped in There are two possible workarounds: to have 2 enhancers (one at the beginning and another one at the end of the compose), or to have an additional method to pass the store as we do for Redux Extension. However, I guess you could avoid these problems by using a middleware instead of a store enhancer, which should be enough for you case (for the extension we're using the enhancer as 'redux-devtools-instrument' needs to change the way redux api works). |
I like your You're right, the store enhancer is kind of overkill for what I'm doing right now. Perhaps adding similar workarounds like you did, switching to middleware, plus a few deprecation warnings is the way out for now. Thank you again Mihail for your guidance. 💯 |
Parts of this are fixed. Multiple clients will be on the roadmap for the future, but not in 2.x. Thx all! |
@skellock How can I get over the issue of multiple devices on every reload. |
@ankitsehgal94 #770 (comment) |
Co-authored-by: Renovate Bot <[email protected]>
Every time i reload the app on android device I see +1 client connected to reactotron.
Also
yield put(Actions.requestFacebookTokenCancelled())
are not shown in reacotron console.v1.1.2
The text was updated successfully, but these errors were encountered: