question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using with redux-devtools-extension

See original GitHub issue

I am trying to use it with redux-devtools-extension and i am getting the following error: Uncaught TypeError: a.subscribe is not a function

I then tried adding redux’s subsribe method here: https://github.com/logux/logux-redux/blob/master/create-logux-creator.js#L127

var middlewared = enhancer(function () {
  return {
    getState: store.getState,
+   subscribe: store.subscribe,
    dispatch: dispatch
  }
})(reducer, preloadedState)

This solves the issue but nowredux-devtools-extension does not seam to find any store. Also using the normal store.dispatch throws an error. Has anybody managed to combine logux-redux with redux-devtools-extension?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Jul 18, 2018

Hi. Thanks for waiting. I added change event to the store 80f5cb7

  1. You need to move to GitHub master of Logux Redux, Logux Client and Logux Server. It will be unreleased 0.3 version with already big changes.
  2. Then you can manually subscribe for store change event:
store.on('change', (state, prevState, action, meta) => {
  console.log(state, prevState, action, meta)
})
0reactions
namjulcommented, Jul 14, 2018

Thx for the encouragement. I like the idea and i will give it a shot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting Up Redux DevTools — A Simple Guide - Medium
1.Adding Redux DevTools extension to our browser (Google Chrome) Download and install Redux DevTools extension to your chrome browser as shown ...
Read more >
Redux Devtools for Dummies - codeburst
Install Redux browser dev-tools (Chrome and Firefox) · Install dev-tools npm package and import it into store file · Open developer tools with...
Read more >
What is Redux DevTools and how to use them - Rootstack
Using Redux DevTools. The first thing is to install the extension in your browser, a very important one to connect your browser to...
Read more >
Redux DevTools
The extension provides power-ups for your Redux development workflow. Apart from Redux, it can be used with any other architectures which handle the...
Read more >
zalmoxisus/redux-devtools-extension - GitHub
1.3 Use redux-devtools-extension package from npm ... and to use like so: import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found