redux dev tools for js-atom v2
import atom from 'js-atom';
import atomReduxDevTools from 'atom-rdt';
const APP_VERSION = 1.0.1
// Setup
const store = createAtom({});
store.addWatch('rdt-watcher', atomReduxDevTools);
// Reducer
function myReducer(somethingNew) {
return store.swap(oldState => ({ ...oldState, somethingNew }), 'my-action-type');
}