redux-devtools-extension icon indicating copy to clipboard operation
redux-devtools-extension copied to clipboard

(pin): undefined

Open Kronuz opened this issue 8 years ago • 10 comments

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?

Kronuz avatar Jan 28 '17 15:01 Kronuz

Could you please share a repo or an example on jsfiddle, so I could reproduce that?

zalmoxisus avatar Jan 28 '17 15:01 zalmoxisus

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.

zalmoxisus avatar Jan 29 '17 13:01 zalmoxisus

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.

GeniaT avatar Apr 28 '18 09:04 GeniaT

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...

levitomer avatar May 21 '19 12:05 levitomer

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.

sarimarton avatar Mar 03 '22 04:03 sarimarton

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 avatar Mar 09 '22 23:03 sarimarton

@sarimarton Are you able to click an action and see the state or do the actions not show up either?

Methuselah96 avatar Mar 10 '22 00:03 Methuselah96

@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 avatar Mar 10 '22 01:03 sarimarton

@sarimarton If the actions are listed, I would suspect you're experiencing https://github.com/reduxjs/redux-devtools/issues/1081.

Methuselah96 avatar Mar 10 '22 01:03 Methuselah96

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'

iykeslim avatar Mar 15 '22 10:03 iykeslim