redux-devtools-extension
redux-devtools-extension copied to clipboard
(pin): undefined
Some times, all I get in the State tab is (pin): undefined
.
I'm using Immutable states and they show fine most f the times (I have serialize: { immutable: Immutable, options: true }
in my config), but some times when some actions come, it gets broken. For example, when I use react-router-redux
actions/middleware, that's when I get the empty State.
Any ideas?
Could you please share a repo or an example on jsfiddle, so I could reproduce that?
It could be related to the issue with core-js
polyfill, hard to say anything about a repro.
One thing we should here, is to show a more relevant message when the extension doesn't receive any data from the app, and not to render the Inspector Monitor.
I just had a similar issue but in the end, it wasn't related to the tool itself but rather to my code in a reducer. I had a "return;" after a few "if" statements that basically returned nothing and therefore the state was erased.
I have the same stab for undefined, and I wonder also why redux devtool keeps null stabs and omits undefined stabs?
My initial state (using null fields)
const initialState = {
data: **null**,
pending: {
flag: false
},
error: **null**
};
In Redux Devtool:
data(pin): **null**
pending(pin): {...}
error(pin): **null**
On the other hand:
My initial state (using undefined fields)
const initialState = {
data: **undefined**,
pending: {
flag: false
},
error: **undefined**
};
In Redux Devtool:
pending(pin): {...}
I have also opened Issue #646 about this, but didn't got any response...
I have a similar issue. Sometimes it comes up and it seems like I have a stable reproduction, but then it sometimes mysteriously goes away. Very frustrating.
I have a case now where Redux Devtools always shows undefined state in Chrome, but it works fine in Edge. I have uninstalled all other extensions in Chrome and restarted, still the same. I'm rolled back to a revision with my app in which it's 100% that it worked previously.
@sarimarton Are you able to click an action and see the state or do the actions not show up either?
@Methuselah96 It's a bummer, but now I can't check it, because it works now. Either a cache clear, or a subsequent browser restart or something else fixed it, as I said above, I can't figure out what puts it back to work again. It works with my latest revisions as well, and I restarted the browser a million times (I'm developing session-related features, so I needed to), and also cleared cache. As I remember, the actions were listed well. I also remember that after cold starts my app state flashed up, and then it went away to show just undefined.
@sarimarton If the actions are listed, I would suspect you're experiencing https://github.com/reduxjs/redux-devtools/issues/1081.
i have similar issue, but mine has been undefined for as long as i can remember and when I click on a product, I get the error that says reading undefined of 'image'