-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Question: Is that possible or good idea to have this thing as a developer tool panel #166
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
Comments
We want to explore this direction in the future, but right now there are many other priorities, so it is really up to whether you want to work on this. (There have been attempts before, they are outdated now: #11.) |
To be honest I don't think having two versions of two files is problematic. https://github.com/gaearon/redux-devtools/blob/next/examples/counter/src/containers/Root.dev.js https://github.com/gaearon/redux-devtools/blob/next/examples/counter/src/store/configureStore.dev.js |
Yep, I go through the the example codes in For the chrome extension, I have slightly idea then what described in #11 . For currently design, So I think it might be a little bit easier if we only separated the UI part into extension. For the store part, We have a And we have a real store in the extension, which accepts these action and changing its state. I'll check out @taylorhakes 's work, and see what we can get. |
@zalmoxisus great work! Then I found the excuse to be lazy again then 😁 And have you ever considered to publish this tool to chrome web market? |
@zalmoxisus I saw your roadmap about publishing the extension. I'll try it now |
@timnew, surely, having it in chrome web market gives us the ability to update the extension automatically. |
Well, I found it is really annoying to distinguish whether to inject this devtool by checking current
ENV
.And the code between whether or not inject this tool are also quite different.
So it is kind of pain.
And I do hate to inject some extra component to the code just for debugging.
So will it be a good idea that to wrap this thing into a panel to Chrome Developer Console(I assume Firefox have similar feature and is possible to make the code compatible with both). So we can use it without changing our code.
The UI component can be injected by
chrome extension
, which is totally separated from the codebase.To monitor the store data, I assume a little
store spy
need to be injected asmiddleware
, but it can disable itself whenENV
isn'tdevelopment
.If the
store spy
is active, it can activate the extension to inject the UI component via sending specific message(aka.chrome.runtime.sendMessage
).With this approach, it could be much easier to use this tool, without changing tons of code to support it.
Any idea?
The text was updated successfully, but these errors were encountered: