Skip to content

v0.3.0

Compare
Choose a tag to compare
@zalmoxisus zalmoxisus released this 27 Apr 18:43
· 148 commits to master since this release

Remote monitoring in production

Use Remote Redux DevTools to monitor your web, React Native or hybrid apps not only in development, but also in production now!

Start or stop monitoring by using specific actions (for example SOME_ACTION_ERROR).

Check the demo here

It implies that for production you'll host remotedev-server on your side.

The configuration will be like:

export default function configureStore(initialState) {
 return createStore(
    rootReducer,
    initialState,
    devTools({
      name: 'Android app', realtime: false,
      hostname: 'your-host.com', port: 8000,
      startOn: 'SOME_ACTION_ERROR' // or array: ['LOGIN_ERROR', 'LOGOUT_ERROR']
      })
  );
}

For development

If you have process.env.NODE_ENV === 'development', just use devTools() as before and all the changes will be monitored. Otherwise set realtime option to true (devTools({ realtime: true })), but make sure to have it in the development only.