- super simple colored redux logger for native and web
npm i gimme-state
import { applyMiddleware, createStore } from 'redux';
import {gimme} from 'gimme-state'
const store = createStore(
reducer,
applyMiddleware(gimme)
)
import { applyMiddleware, createStore } from 'redux';
import {gimmeDiff} from 'gimme-state'
const store = createStore(
reducer,
applyMiddleware(gimmeDiff)
)
-
before
: refers to the previous state -
action
: refers to the action you are dispatching -
after
: refers to the state post dispatch -
fullColors
: set to false if you are using remote debugger and want color, keep true if you are looking at the logs in your terminal
import { applyMiddleware, createStore } from 'redux';
import {customGimme} from 'gimme-state'
const store = createStore(
reducer,
applyMiddleware(customGimme({fullColors:true}))
)
MIT