Skip to content
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

Extension only works in Chrome #411

Closed
rahulthewall opened this issue Oct 5, 2017 · 6 comments
Closed

Extension only works in Chrome #411

rahulthewall opened this issue Oct 5, 2017 · 6 comments

Comments

@rahulthewall
Copy link

Hi,

In one of the React projects that I work on, I can't get the redux-devtools-extension to work on Firefox. It works on Chrome.

The code used is given below:

// Redux Dev Tools store enhancer.
	// @see https://github.com/zalmoxisus/redux-devtools-extension
	const reduxDevToolsEnhancer =
		// We only want this enhancer enabled for development and when in a browser
		// with the extension installed.
		process.env.NODE_ENV === 'development'
			&& typeof window !== 'undefined'
			&& typeof window.devToolsExtension !== 'undefined'
			// Call the brower extension function to create the enhancer.
			? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ // eslint-disable-line no-underscore-dangle
			// Else we return a no-op function.
			: compose;

	const epicMiddleware = createEpicMiddleware(createRootEpic(customEpics));

	const store = createStore(
		createReducer(customReducers),
		initialState,
		reduxDevToolsEnhancer(
			applyMiddleware(epicMiddleware),
		),
	);

Can someone help me figure out what might be the reason?

Thanks

@zalmoxisus
Copy link
Owner

Hi. What version of Firefox are you using? Do you have Redux tab under DevTools panels?

@rahulthewall
Copy link
Author

Hi @zalmoxisus, the problem persists across various versions of Firefox. And yes, I have the Redux tab under DevTools panel. And the redux extension works on the example project here: http://zalmoxisus.github.io/examples/counter/

So there's something that's wrong with the project setup it seems, but I can't figure out what it is.

@zalmoxisus
Copy link
Owner

Aren't any exceptions in the console? I'd suspect it could be a problem with serializing some native types like in #407. You could try to sanitize some parts of the reducer's object (using actionSanitizer / stateSanitizer) to see where it comes from. See the API for more more details.

@ghost
Copy link

ghost commented Nov 6, 2017

Maybe related? #419 (comment)

@rahulthewall
Copy link
Author

I don't have access to this project any longer. @rodogir - you want to investigate this? :)

@ValeryVS ValeryVS mentioned this issue Aug 6, 2018
@zalmoxisus zalmoxisus added this to To do in 2.16 Nov 18, 2018
@zalmoxisus
Copy link
Owner

Closing in favor of #546.

@zalmoxisus zalmoxisus removed this from To do in 2.16 Nov 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants