redux-devtools-extension not working in chrome devtools
Asked Answered
H

4

8

I'm using redux-devtools-extension to develop a React Native app:

In the React Native debugger it works and you can see window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ and window.__REDUX_DEVTOOLS_EXTENSION__ are defined correctly.

enter image description here

In the chrome devtools not so.

enter image description here enter image description here

Does anyone know how I can get these to be defined in chrome devtools? I have the redux extension installed in chrome and have tried reinstalling it.

Highsounding answered 7/11, 2019 at 23:50 Comment(0)
N
25

I faced a similar problem, the following worked for me.

Goto extensions settings for redux Devtools in chrome extensions and check Allow Access to file URLs settings.

Extensions > Redux Devtools > Allow Access to file URLs

Ninety answered 17/10, 2020 at 6:26 Comment(1)
Excellent, thank you, man! It really helped thoroughly!Snowfall
Z
5

I had the same issue where the option REDUX did not appear in the top menu Chrome browser.

  1. In "Manage Extensions", I made sure Redux DevTools was active and updated.
  2. I reloaded the page.
  3. Right click >> Redux DevTools >> Open in a panel(enable in browser settings)
  4. Right click >> Inspect

Now, verify "Redux" appears in the top menu next to Elements, Console, ... , Lighthouse, etc.

Redux DevTools extension should be working in chrome-devtools.

Zacheryzack answered 8/5, 2021 at 15:14 Comment(1)
After trying a lot of other things, this is the thing that ultimately ended up working for me. Thanks @Domiserver!Maidamaidan
E
2

You are missing the COMPOSE__() in last line, use this way instead of your code:

    window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__()

or this way:

    window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()

follow this link https://github.com/zalmoxisus/redux-devtools-extension#installation

Ephah answered 26/12, 2019 at 6:13 Comment(1)
Do you mean call the function? But the function itself is undefined so I can't call it.Highsounding
B
0

As reported here : Redux TypeError: Cannot read property 'apply' of undefined , you`ll get an 'cannot read property apply of undefined' because compose from redux expects all its arguments to be functions.

One answer from that post fixed it for me: passing a function for both truthy and falsy evaluations

window.REDUX_DEVTOOLS_EXTENSION ? window.REDUX_DEVTOOLS_EXTENSION() : f => f

Bascule answered 31/8, 2020 at 8:1 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.