zalmoxisus / remote-redux-devtools

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

the devtools share all state history of other device #63

Open jacobcyl opened 7 years ago

jacobcyl commented 7 years ago

We use the devtools, but when I open the devtools , I found the Inspector appear many other devices state log which were my teammates device create. I mean the devtools share all other devices state log.

How to set it only listen to my device and only show my state history?

zalmoxisus commented 7 years ago

By default you send data via remotedev.io, which restricts logs to your current IP address. A simple solution is to identify your instance, by providing a name parameter like so:

export default function configureStore(preloadedState) {
  const store = createStore(
    reducer,
    preloadedState,
    devToolsEnhancer({
      name: 'Jacob\'s app'
    })
  );
  return store;
}

If you want it only to run on your part, use a local server.