remote-redux-devtools
remote-redux-devtools copied to clipboard
the devtools share all state history of other device
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 device
s state log.
How to set it only listen to my device and only show my state history?
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.