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 install remotedev 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".
remotedev to see redux updates in browserhmm, devtools may or may not relate to the Tracing project the core team is doing. would love some guidance. https://github.com/gatsbyjs/gatsby/issues/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 remotedev myself). I think there are a lot of assumed dependencies there that no longer exist/have been moved. didn't have a ton of time to dig into cause or fix
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...
It works well in my own V2 boilerplate :
First Step
Second Step
Last Step
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.
They've already commit a V2 starter with Dan Abramov's Devtool version and emotion ssr together !
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!
Most helpful comment
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...
It works well in my own V2 boilerplate :
https://github.com/gatsbyjs/gatsby/tree/master/examples/using-redux
https://github.com/zalmoxisus/redux-devtools-extension
you can see my own config as an example. Yours might be different depending on your needs.