1.0.28 • Published 5 years ago

gimme-state v1.0.28

Weekly downloads
40
License
ISC
Repository
github
Last release
5 years ago

gimme-state for Redux

  • super simple colored redux logger for native and web

gimme-state-screenshot

Install

npm i gimme-state

Basic Usage

import { applyMiddleware, createStore } from 'redux';
import {gimme} from 'gimme-state'

const store = createStore(
  reducer,
  applyMiddleware(gimme)
)

To Just Log What Changed:

import { applyMiddleware, createStore } from 'redux';
import {gimmeDiff} from 'gimme-state'

const store = createStore(
  reducer,
  applyMiddleware(gimmeDiff)
)

Custom Logger

  • 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}))
)

License

MIT

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.22

5 years ago

1.0.23

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago