zalmoxisus / remote-redux-devtools

Redux DevTools remotely.
http://zalmoxisus.github.io/monitoring/
MIT License
1.8k stars 138 forks source link

Can i use them remote-redux-devtools for nw ? #29

Open ipostol opened 8 years ago

ipostol commented 8 years ago

Hello, i am have some redux project, and our production started on NW. Can i use remote-devtools for them? Now i am try do it but it don`t work :(

zalmoxisus commented 8 years ago

Yes, it should work even in node environment. You can just set realtime parameter to true and it will work:

createStore(reducer, devTools({ realtime: true }))

Just make sure not to have it in production, as it will affect the performance.

ipostol commented 8 years ago

I will use them in pre-production. For debug in nw. I am have next code in prod env:

  store = compose(
    applyMiddleware(clientMiddleware(socket), promiseMiddleware),
    reduxReactRouter({
      getRoutes,
      createHistory
    }),
    persistState(window.location.href.match(/[?&]debug_session=([^&]+)\b/)),
    devTools({
      name: `My name`, realtime: true
    })
  )(createStore)(reducers);

If i am start this in browser all be ok, mb sometime chrome extension not found application. But if i am start this in NW chrome extension not found anything.

zalmoxisus commented 8 years ago

I'm using it successfully on Electron. If you publish a repo I could run, I'll take a look what blocks sending actions there.

ipostol commented 8 years ago

I will do it later, course now i haven`t open source code. Thank you for response.