-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support monitors reducers #87
Comments
Hmm, do you mean that because the monitor may not be launched at the start of the app, the monitor reducer might not work as expected? |
@khankuan, we don't render monitors inside the user's app, so they are not present there at all. Applying all available monitors and hiding the rendered html just to access their reducers wouldn't be a reasonable solution I think. |
Hmm not sure if I got the flow correct. Could we use monitor reducers the same way as the current reducer? |
Actually, I looked into the shift toggle implementation, and you don't need any reducers applied on the user's app side, everything should be done on the remote side monitor. We should just allow sending the changes from there to the app, which should be an easy fix in The current issue is related only to To understand the flow, take a look at remote-redux-devtools. It's the same principle and it's agnostic to any monitors, because they are applied outside (it can be even on the other device). |
Hmm, i checked out filterable-log-monitor. Which part of it required code on user's app side? Cheers |
Related to zalmoxisus/redux-devtools-extension#87 (comment) mment-207745731
@khankuan, sorry for the late response.
Regarding the shift toggle implementation, I tried your fork and it works great now (except the issue I commented). Give it a try and feel free to reopen the issue if you have any troubles. |
@zalmoxisus hmm, I updated to the latest version but it seems like |
@khankuan make sure to update |
I'm running on master and also tried updating to 0.3.2 but seems the same :/ |
@khankuan, strange. Just checked, replaced |
I've fix the issue you've described here :) |
👍 Tested and it works now without any issues. Check inside |
Related to zalmoxisus/redux-devtools-extension#87 (comment) mment-207745731
Due to Chrome restrictions, an extension cannot communicate directly with the page script, so the only thing the injecting script does is adding instrument enhancer and relaying all the changes to the extension's background script, where we have all the orchestration.
Before we open a monitor window, no data are relayed to the extension and no monitors are rendered. In this way the extension wouldn't have signifiant impact on the app while not using it.
We need somehow to consume monitors' reducers on the app side without rendering the monitors. Also we should keep the ability to add / remove monitors on the fly.
The text was updated successfully, but these errors were encountered: