-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Discussion] Gatsby Devtools #6137
Comments
hmm, devtools may or may not relate to the Tracing project the core team is doing. would love some guidance. #1074 |
Sites can/should be able to access the redux devtools. I haven't tested this forever though so no idea if it still works. Tracing is somewhat unrelated. I'd like at some point if we build a data browser for your site that makes it easy to view all the site's data. |
ok I do agree tracing is somewhat unrelated. fwiw I tested using redux devtools on a -site- and it didn't work (even after trying to setup |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
may still want to keep this one open @KyleAMathews unless theres an umbrella issue somewhere for fixing the redux devtools? |
Not sure it achieves your Idea List but if someone wants to see redux updates in browse, there is simple pattern. You will have data visualisation such as reducers structure, action dispatch, stop and replay updated in real time...
import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers';
const initStore = () => {
const windowGlobal = typeof window !== 'undefined' && window
const devtools =
process.env.NODE_ENV === 'development' && windowGlobal.devToolsExtension
? window.__REDUX_DEVTOOLS_EXTENSION__ &&
window.__REDUX_DEVTOOLS_EXTENSION__()
: f => f;
const store = createStore(
rootReducer,
compose(
applyMiddleware(thunk),
devtools,
)
);
return store;
};
export default initStore; |
thanks. sad that devtools isnt a priority. |
Not now due to V2 migration and that's pretty understandable... But I'm pretty sure Gatsby community will come up in a couple of month to develop "an out of the box" solution. Meanwhile Redux-devtools-extension, as I explained above, achieves pretty much everything your are looking for, it's just an alternative to redux-remotedev which is way more stable and maintained by the way (7000+ stars, 47 contributors on github). Since I exposed a V2 implementation you should definitely give it a try :) Cheers |
totally. cheers! |
Summary
There is a redux devtools section in the docs and some old issues. But i believe the docs are outdated and also those are for working within the Gatsby repo itself, not with a Gatsby site, because gatsby sites do not have access to
remotedev
. (please correct me if this is wrong - i tried to simply installremotedev
in my app (as well as globally) and it didnt work)Anyway, this seems like a strange limitation. Why shouldn't Gatsby apps have the same tooling? this doesnt have to be limited to hooking into redux devtools, although we do get those for "free".
Idea list
remotedev
to see redux updates in browserThe text was updated successfully, but these errors were encountered: